/** * @param Form $form */ public function configure(Form $form) { $form->addText('name', 'Name')->addRule($form::FILLED); $form->addText('domain', 'Domain')->addRule($form::FILLED); /** @var ManyToOne $page */ $page = $form->addOneToOne('page', 'Page'); $page->setQuery($this->pageRepository->createQueryBuilder('a')->orderBy('a.positionString', 'ASC')); $form->addSaveButton('Save'); }
/** * @param Form $form */ public function configure(Form $form) { $form->addOneToOne('page', 'Page'); $form->addSaveButton('Save'); }
/** * @param Form $form */ public function configure(Form $form) { $form->addSelect('tag', 'Tag', \CmsModule\Content\Entities\PageTagEntity::getTags()); $form->addOneToOne('page', 'Page'); $form->addSaveButton('Save'); }