/** * Initializes a new UnitOfWork instance, bound to the given EntityManager. * * @param Doctrine\ORM\EntityManager $em */ public function __construct(EntityManager $em) { $this->_em = $em; $this->_evm = $em->getEventManager(); $this->_useCExtension = $this->_em->getConfiguration()->getUseCExtension(); }