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