Example #1
0
 /**
  * @param MongoDBDocumentRepository $repository
  */
 public function __construct(MongoDBDocumentRepository $repository)
 {
     parent::__construct($repository->getDocumentName());
     $this->repository = $repository;
 }
Example #2
0
 /**
  * @param string $entityName
  */
 public function __construct($entityName)
 {
     parent::__construct($entityName);
     $this->collection = new ArraySet();
 }