findoneby documentation code example
Example: doctrine getrepository findby
$em->getRepository('myentitity')
->findBy(
array(
'field1' =>array( 'value1','value2'),
'field2' => 'value3'
) // $where
);