<?php
namespace App\Form\Type\FAQ\Topic;
use App\Entity\FAQ\Topic;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\FormBuilderInterface;
class CreateTopicType extends TopicType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
parent::buildForm($builder, $options);
$builder->add('parent', EntityType::class, ['required' => false, 'class' => Topic::class]);
}
}