public function delete() { $this->db->delete(static::getTableName(), $this->db->quoteInto("`key`= ?", $this->model->getKey())); $this->model->clearDependentCache(); }