I'm trying to work with findBy()
on an application made in Symfony2. I would like to put two conditions in FindBy or mix with Where if possible but I am not getting it.
$properties = $em->getRepository('PropertyBundle:Property')->findBy(array(),array('name' => 'ASC'));
I would like to include conditions active = '1'
to choose only the records that contain the active (active) status.
$properties = $em->getRepository('CitraxPropertyBundle:Property')->findBy(array(),array('name' => 'ASC'),array('active' => 1));