Created
February 28, 2011 04:40
-
-
Save highruned/846943 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$q1 = $application->db->createQuery(' | |
select x | |
from Brain\Models\Blog x | |
where x.updated_at < :start_time | |
and x.state != :processing | |
order by x.updated_at | |
')->setMaxResults(1); | |
$q1->setParameters(array( | |
'start_time' => '1000-00-00 00:00:00', | |
'processing' => \Brain\Models\Blog::STATE_PROCESSING | |
)); | |
$blogs = $q1->getResult(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment