41 $alias =
function (
$column) use ($table_alias) {
42 return $table_alias ?
"{$table_alias}.{$column}" :
$column;
46 $wheres[] = parent::prepare($qb, $table_alias);
48 foreach ((array) $this->names as
$name) {
49 $wheres[] = $qb->
compare($alias($name), $this->comparison, $this->values, $this->value_type, $this->case_sensitive);
52 return $qb->
merge($wheres);
if(!$user||!$user->canDelete()) $name
Builds quereis for matching entities by their attributes.
Database abstraction query builder.
compare(string $x, string $comparison, $y=null, string $type=null, bool $case_sensitive=null)
Build value comparison clause.
Builds a clause from closure or composite expression.
merge($parts=null, $boolean= 'AND')
Merges multiple composite expressions with a boolean.
prepare(QueryBuilder $qb, $table_alias=null)
{}