ORM::where PHP Method

where() public method

If you use an array in $column_name, a new clause will be added for each element. In this case, $value is ignored.
public where ( $column_name, $value = null )
    public function where($column_name, $value = null)
    {
        return $this->where_equal($column_name, $value);
    }

Usage Example

Esempio n. 1
0
 /**
  * @return ORM
  */
 protected function before_fetch(ORM $item)
 {
     if (is_null($this->_parent_key)) {
         throw new Extasy_Exception('Parent key not defined');
     }
     $item->where($this->_parent_key, '=', $this->param('parent'));
     return $item;
 }
All Usage Examples Of ORM::where
ORM