phpDataMapper_Query::where PHP Method

where() public method

WHERE conditions
public where ( array $conditions = [], string $type = "AND", string $setType = "AND" )
$conditions array Array of conditions for this clause
$type string Keyword that will separate each condition - "AND", "OR"
$setType string Keyword that will separate the whole set of conditions - "AND", "OR"
    public function where(array $conditions = array(), $type = "AND", $setType = "AND")
    {
        $where = array();
        $where['conditions'] = $conditions;
        $where['type'] = $type;
        $where['setType'] = $setType;
        $this->conditions[] = $where;
        return $this;
    }