I have to type for one filed of entity and I want to show each of them in special condition
but I don’t want to define form type of entity 2 time
Is there any solution?
for example class1 have ‘name; field
in class1Type I add below code
->add(‘name’, ‘type2_name’) ;
and in twig when a checkbox is checked I will show name as type1_name otherwise show name as type2_name
You must be logged in to reply to this topic.