What is the cleanest way of using the Doctrine findBy methods but getting an array returned and not objects.
Doctrine::getTable(\'Table\')->findOneById(x)
$adCampaign = $em->createQuery('select c from \Model\Campaign c where c.client = ?1') ->setParameter(1, $clientId) ->getArrayResult();
where em is the entityManager - you get the result as array with getArrayResult