public function updateAction(TestEntity $entity) { $this->testEntityRepository->update($entity); return sprintf('Entity "%s" updated', $entity->getName()); }