public function __construct(EntityManager $em) { $this->em = $em; $this->evm = $em->getEventManager(); }