Skip to content

Instantly share code, notes, and snippets.

@rubytastic
Created May 29, 2015 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubytastic/b13cb02c3453d0651481 to your computer and use it in GitHub Desktop.
Save rubytastic/b13cb02c3453d0651481 to your computer and use it in GitHub Desktop.
$bla = Message::get()
->filter(array(
'IsPublished' => true,
'StartPublication:GreaterThan:Not' => date('Y-m-d'),
'StopPublication:LessThan:Not' => date('Y-m-d'),
'Priority' => array('High', 'Normal')
))
->sort('StartPublication', 'DESC')->limit($this->getLimit());
debug::show($bla);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment