src/Form/Type/FAQ/Topic/CreateTopicType.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Form\Type\FAQ\Topic;
  3. use App\Entity\FAQ\Topic;
  4. use Symfony\Bridge\Doctrine\Form\Type\EntityType;
  5. use Symfony\Component\Form\FormBuilderInterface;
  6. class CreateTopicType extends TopicType
  7. {
  8.     public function buildForm(FormBuilderInterface $builder, array $options)
  9.     {
  10.         parent::buildForm($builder$options);
  11.         $builder->add('parent'EntityType::class, ['required' => false'class' => Topic::class]);
  12.     }
  13. }