Пример #1
0
 /**
  * @param string                $class
  * @param DocumentManager       $dm
  * @param IClassMetadataFactory $classMetadataFactory
  */
 public function __construct($class, DocumentManager $dm, IClassMetadataFactory $classMetadataFactory)
 {
     parent::__construct($class, $dm, $dm->getClassMetadata($class), $classMetadataFactory);
     $this->dm = $dm;
 }
Пример #2
0
 /**
  * @param string                $class
  * @param EntityManager         $em
  * @param IClassMetadataFactory $classMetadataFactory
  */
 public function __construct($class, EntityManager $em, IClassMetadataFactory $classMetadataFactory)
 {
     parent::__construct($class, $em, $em->getClassMetadata($class), $classMetadataFactory);
     $this->em = $em;
 }