I retrieve all objects for an entity like this:
$allQuestions = $em->getRepository('AppMyBundle:Question')
->findBy(array('isActive' => true, 'isDeleted' => false));
I get an array of objects into $allQuestions. Is there a possibility to get an ArrayCollection instead of an array?
ArrayCollectionit is an array of objects, you alredy getting theArrayCollection, check the stackoverflow.com/questions/29180651/arraycollection-in-symfony/… response for more details about what it is an array collection