PHP Class KGzocha\Searcher\CriteriaBuilder\Doctrine\AbstractORMCriteriaBuilder

Extra feature is join() method which will add another join only if there is not such join already.
Author: Krzysztof Gzocha ([email protected])
Inheritance: implements KGzocha\Searcher\CriteriaBuilder\CriteriaBuilderInterface
显示文件 Open project: krzysztof-gzocha/searcher

Public Methods

Method Description
supportsSearchingContext ( KGzocha\Searcher\Context\SearchingContextInterface $searchingContext )

Protected Methods

Method Description
filterExistingJoins ( Doctrine\ORM\QueryBuilder $queryBuilder, array $joinParts, string $alias, string $join, string $joinType ) : Doctrine\ORM\QueryBuilder
join ( Doctrine\ORM\QueryBuilder $queryBuilder, string $join, string $alias, string $joinType ) : Doctrine\ORM\QueryBuilder Will do JOIN only if there is no such join already.

Method Details

filterExistingJoins() protected method

protected filterExistingJoins ( Doctrine\ORM\QueryBuilder $queryBuilder, array $joinParts, string $alias, string $join, string $joinType ) : Doctrine\ORM\QueryBuilder
$queryBuilder Doctrine\ORM\QueryBuilder
$joinParts array
$alias string
$join string
$joinType string
return Doctrine\ORM\QueryBuilder

join() protected method

For any other more advanced join strategies please use unique aliases. Remember: for performance reasons you should keep number of joins as low as possible Example usage: $this->join($qb, 'p.house', 'h', Join::LEFT_JOIN).
protected join ( Doctrine\ORM\QueryBuilder $queryBuilder, string $join, string $alias, string $joinType ) : Doctrine\ORM\QueryBuilder
$queryBuilder Doctrine\ORM\QueryBuilder
$join string
$alias string
$joinType string
return Doctrine\ORM\QueryBuilder

supportsSearchingContext() public method

public supportsSearchingContext ( KGzocha\Searcher\Context\SearchingContextInterface $searchingContext )
$searchingContext KGzocha\Searcher\Context\SearchingContextInterface