public function delete($where = null)
    {
        if ($this->map) {
            $where = $this->map->where($where);
        }
        if ($this->fake) {
            return $this->fake->delete($where);
        }
        $pattern = 'DELETE FROM ?t WHERE ?w';
        $data = array($this->name, $where);
        return $this->db->query($pattern, $data)->ar();
    }
public function delete($where = null)
    {
        if ($this->map) {
            $where = $this->map->where($where);
        }
        if ($this->fake) {
            return $this->fake->delete($where);
        }
        $pattern = 'DELETE FROM ?t WHERE ?w';
        $data = array($this->name, $where);
        return $this->db->query($pattern, $data)->ar();
    }
public function delete ( $ where = null ) { if ( $ this -> map ) { $ where = $ this -> map -> where ( $ where ) ; } if ( $ this -> fake ) { return $ this -> fake -> delete ( $ where ) ; } $ pattern = 'DELETE FROM ?t WHERE ?w' ; $ data = array ( $ this -> name , $ where ) ; return $ this -> db -> query ( $ pattern , $ data ) -> ar ( ) ; }
Deletes rows from the table

@param mixed $where
@return int
number of affected rows
Deletes rows from the table