public function __construct(EntityManager $em) { parent::__construct($em); $this->lifecycleEventsInvoker = new ListenersInvoker($em); $this->uow = $em->getUnitOfWork(); }