public function setEntityManager(EntityManager $entity_manager = null) { $this->entity_manager = $entity_manager; return $this; }