public function getRepository($entity) { return $this->getEntityManager()->getRepository((string) $entity); }