I am using the findBy() method on a Doctrine repository:
findBy()
$entities = $repository->findBy(array(\'type\'=> \'C12\'));
How can
$ens = $em->getRepository('AcmeBinBundle:Marks') ->findBy( array(), array('id' => 'ASC') );