You are here

public function Criteria::where in Plug 7

Sets the where expression to evaluate when this Criteria is searched for.

Parameters

Expression $expression:

Return value

Criteria

2 calls to Criteria::where()
Criteria::andWhere in lib/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php
Appends the where expression to evaluate when this Criteria is searched for using an AND with previous expression.
Criteria::orWhere in lib/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php
Appends the where expression to evaluate when this Criteria is searched for using an OR with previous expression.

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php, line 119

Class

Criteria
Criteria for filtering Selectable collections.

Namespace

Doctrine\Common\Collections

Code

public function where(Expression $expression) {
  $this->expression = $expression;
  return $this;
}