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 $allQuestions
. Is there a way to get ArrayCollection
instead of an array?
source
to share