public function update(ModelInterface $model) { $statement = new UpdateStatement($model->table()); $statement->setParameters($model->extract())->where(Restrictions::eq("id", ":id"))->addExpressionParameter("id", $model->id()); $this->getDatabase()->execute($statement); }