Doctrine\ODM\PHPCR\UnitOfWork::__construct PHP Метод

__construct() публичный Метод

public __construct ( Doctrine\ODM\PHPCR\DocumentManagerInterface $dm )
$dm Doctrine\ODM\PHPCR\DocumentManagerInterface
    public function __construct(DocumentManagerInterface $dm)
    {
        $this->dm = $dm;
        $this->session = $dm->getPhpcrSession();
        $this->eventListenersInvoker = new ListenersInvoker($dm);
        $this->eventManager = $dm->getEventManager();
        $config = $dm->getConfiguration();
        $this->documentClassMapper = $config->getDocumentClassMapper();
        $this->validateDocumentName = $config->getValidateDoctrineMetadata();
        $this->writeMetadata = $config->getWriteDoctrineMetadata();
        $this->uuidGenerator = $config->getUuidGenerator();
        if ($this->session instanceof JackalopeSession) {
            $this->useFetchDepth = 'jackalope.fetch_depth';
        }
    }
UnitOfWork