private function applyFilters(array $query) : array
    {
        $documentPersister = $this->dm->getUnitOfWork()->getDocumentPersister($this->class->name);

        $query = $documentPersister->addDiscriminatorToPreparedQuery($query);
        $query = $documentPersister->addFilterToPreparedQuery($query);

        return $query;
    }
private function applyFilters(array $query) : array
    {
        $documentPersister = $this->dm->getUnitOfWork()->getDocumentPersister($this->class->name);

        $query = $documentPersister->addDiscriminatorToPreparedQuery($query);
        $query = $documentPersister->addFilterToPreparedQuery($query);

        return $query;
    }
private function applyFilters ( array $ query ) : array { $ documentPersister = $ this -> dm -> getUnitOfWork ( ) -> getDocumentPersister ( $ this -> class -> name ) ; $ query = $ documentPersister -> addDiscriminatorToPreparedQuery ( $ query ) ; $ query = $ documentPersister -> addFilterToPreparedQuery ( $ query ) ; return $ query ; }
Applies filters and discriminator queries to the pipeline
Applies filters and discriminator queries to the pipeline