Ejemplo n.º 1
0
 /**
  * @param MongoDBDocumentRepository          $repository
  * @param DocumentDataSourceFactoryInterface $documentDataSourceFactory
  */
 public function __construct(MongoDBDocumentRepository $repository, DocumentDataSourceFactoryInterface $documentDataSourceFactory)
 {
     parent::__construct($repository->getDocumentName());
     $this->repository = $repository;
     $this->documentDataSourceFactory = $documentDataSourceFactory;
 }
Ejemplo n.º 2
0
 /**
  * @param string $entityName
  */
 public function __construct($entityName)
 {
     parent::__construct($entityName);
     $this->collection = new ArraySet();
 }