Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 /**
  * @return PersisterInterface
  * @throws \Exception
  */
 private function createPersister()
 {
     return new SQLBatchPersister($this->dm->getMetadataFactory(), $this->dm->getBinding());
 }