public function delete($model, $id) { $dsql = $this->getDsqlFromModel($model); $dsql->where($model->id_field, $id); $dsql->delete(); }