private function createCreateForm(Index $entity) { $form = $this->createForm(new IndexType(), $entity, array('action' => $this->generateUrl('ojs_admin_index_create'), 'method' => 'POST')); return $form; }