public function Criteria::andWhere in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php \Doctrine\Common\Collections\Criteria::andWhere()
Appends the where expression to evaluate when this Criteria is searched for using an AND with previous expression.
Parameters
Expression $expression:
Return value
File
- vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ Criteria.php, line 134
Class
- Criteria
- Criteria for filtering Selectable collections.
Namespace
Doctrine\Common\CollectionsCode
public function andWhere(Expression $expression) {
if ($this->expression === null) {
return $this
->where($expression);
}
$this->expression = new CompositeExpression(CompositeExpression::TYPE_AND, array(
$this->expression,
$expression,
));
return $this;
}