FactoryGirl\Provider\Doctrine\ORM\Repository::withQueryBuilder PHP Метод

withQueryBuilder() защищенный Метод

Create a query builder, perform the given operation on it and return the query builder. The operation callback receives the query builder and its associated expression builder as arguments.
protected withQueryBuilder ( $do ) : QueryBuilder
Результат QueryBuilder
    protected function withQueryBuilder($do)
    {
        $qb = $this->getBaseQueryBuilder();
        $do($qb, $qb->expr());
        return $qb;
    }