32 $alias =
function (
$column) use ($table_alias) {
33 return $table_alias ?
"{$table_alias}.{$column}" :
$column;
38 if (!empty($this->type_subtype_pairs)) {
41 $types_where[] = $qb->
merge([
52 if (!empty($types_where)) {
53 $wheres[] = $qb->
merge($types_where,
'OR');
56 $wheres[] = parent::prepare($qb, $table_alias);
58 return $qb->
merge($wheres);
prepare(QueryBuilder $qb, $table_alias=null)
{}
Database abstraction query builder.
compare(string $x, string $comparison, $y=null, string $type=null, bool $case_sensitive=null)
Build value comparison clause.
Builds clauses for filtering entities by their type and subtype.
Builds a clause from closure or composite expression.
merge($parts=null, $boolean= 'AND')
Merges multiple composite expressions with a boolean.