I am using the findBy() method on a Doctrine repository:
findBy()
$entities = $repository->findBy(array(\'type\'=> \'C12\'));
How can
$cRepo = $em->getRepository('KaleLocationBundle:Country'); // Leave the first array blank $countries = $cRepo->findBy(array(), array('name'=>'asc'));