eZ\Publish\Core\Persistence\Doctrine\SelectDoctrineQuery::where PHP Method

where() public method

where() accepts an arbitrary number of parameters. Each parameter must contain a logical expression or an array with logical expressions. If you specify multiple logical expression they are connected using a logical and. Multiple calls to where() will join the expressions using a logical and. Example: $q->select( '*' )->from( 'table' )->where( $q->expr->eq( 'id', 1 ) );
public where ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
return eZ\Publish\Core\Persistence\Database\SelectQuery
    public function where()
    {
        $args = func_get_args();
        if (count($args) === 0) {
            throw new QueryException('No arguments given');
        }
        foreach ($args as $whereCondition) {
            $this->parts['where'][] = $whereCondition;
        }
        return $this;
    }