Skip to content

Instantly share code, notes, and snippets.

@cordoval
Created October 24, 2010 03:56
Show Gist options
  • Select an option

  • Save cordoval/643063 to your computer and use it in GitHub Desktop.

Select an option

Save cordoval/643063 to your computer and use it in GitHub Desktop.
getWithJobs
// 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