results as $proxy) { $collection->add(new EntityProxy($proxy['contenttype'], $proxy['id'], $this->getEntityManager())); } return $collection; } public function setEntityManager(EntityManager $em) { $this->em = $em; } /** * @return EntityManager */ public function getEntityManager() { return $this->em; } }