public function bindEntityManager(Doctrine\ORM\EntityManager $em) { $this->entityManager = $em; return $this; }