Created
October 24, 2010 03:56
-
-
Save cordoval/643063 to your computer and use it in GitHub Desktop.
getWithJobs
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
| // lib/model/doctrine/JobeetCategoryTable.class.php | |
| class JobeetCategoryTable extends Doctrine_Table | |
| { | |
| public function getWithJobs() | |
| { | |
| $q = $this->createQuery('c') | |
| ->leftJoin('c.JobeetJobs j') | |
| ->where('j.expires_at > ?', date('Y-m-d H:i:s', time())); | |
| return $q->execute(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment