private function createEditForm(Index $entity) { $form = $this->createForm(new IndexType(), $entity, array('action' => $this->generateUrl('ojs_admin_index_update', array('id' => $entity->getId())), 'method' => 'PUT')); return $form; }