protected function getEntityManager() { return $this->getContainer()->get('doctrine')->getManager(); }