find doctrine code example
Example 1: doctrine orm get all
$records = $em->getRepository("Entities\YourTargetEntity")->findAll();
Example 2: doctrine getrepository findby
$em->getRepository('myentitity')
->findBy(
array(
'field1' =>array( 'value1','value2'),
'field2' => 'value3'
) // $where
);