public function getRepository($entity) { return $this->em->getRepository($this->getClassName($entity)); }