public function updateModel(ModelInterface $model) { $this->getEntityManager()->flush(); return $model; }