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