Can be found by returning arraycollection instead of array
I am fetching all objects for an entity like this:
$allQuestions = $em->getRepository('AppMyBundle:Question') ->findBy(array('isActive' => true, 'isDeleted' => false));
I am getting an array of objects in
. Is there a way to get
instead of an array?
source to share