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