public function __construct(DocumentManager $dm, EventManager $evm, UnitOfWork $uow, HydratorFactoryInterface $hydratorFactory, ClassMetadata $class) { $this->dm = $dm; $this->binding = $dm->getBinding(); $this->evm = $evm; $this->uow = $uow; $this->hydratorFactory = $hydratorFactory; $this->class = $class; }
/** * Creates the OrientDB schema for the given array of ClassMetadata instances. * * @param ClassMetadata[] $classes */ public function createSchema(array $classes) { $sql = $this->getCreateSchemaSql($classes); $b = $this->_dm->getBinding(); $b->sqlBatch($sql, false); }
/** * @return PersisterInterface * @throws \Exception */ private function createPersister() { return new SQLBatchPersister($this->dm->getMetadataFactory(), $this->dm->getBinding()); }