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();
    }