private function createEditForm(JournalUser $entity) { $actionUrl = $this->generateUrl('ojs_journal_user_update', ['journalId' => $entity->getJournal()->getId(), 'id' => $entity->getId()]); $form = $this->createForm(new JournalUserEditType(), $entity, ['method' => 'PUT', 'action' => $actionUrl]); return $form; }