src/EntitySpecificationRepositoryTrait.php
public function getQuery($specification, ResultModifier $modifier = null)
    {
        $query = $this->getQueryBuilder($specification)->getQuery();

        if (null !== $modifier) {
            $modifier->modify($query);
        }

        return $query;
    }
public function getQuery($specification, ResultModifier $modifier = null)
    {
        $query = $this->getQueryBuilder($specification)->getQuery();

        if (null !== $modifier) {
            $modifier->modify($query);
        }

        return $query;
    }
public function getQuery ( $ specification , ResultModifier $ modifier = null ) { $ query = $ this -> getQueryBuilder ( $ specification ) -> getQuery ( ) ; if ( null !== $ modifier ) { $ modifier -> modify ( $ query ) ; } return $ query ; }
Prepare a Query with a Specification.

@param Filter|QueryModifier $specification
@param ResultModifier|null  $modifier

@return Query
Prepare a Query with a Specification .