Skip to content

Instantly share code, notes, and snippets.

@Tocacar
Created February 15, 2011 15:43
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 Tocacar/827666 to your computer and use it in GitHub Desktop.
Save Tocacar/827666 to your computer and use it in GitHub Desktop.
public function executeIndex(sfWebRequest $request)
{
$this->mouses = Doctrine::getTable('Mouse')
->createQuery('m')
->leftJoin('m.LabStrain s')
->leftJoin('m.MouseCage j')
->leftJoin('j.Cage c')
->where('j.dateout = ?', "0000-00-00")
->execute();
return $this->renderText(json_encode($this->mouses));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment