Open lsv opened 9 years ago
Hmm, shouldn't every field have a group from the GroupTypeExtension
? Their default value is null
but they should all have the "var".
Im lazy and only set groups on not "default group" stuff.
->add('title', 'text', [
'required' => true,
])
->add('description', 'genemu_tinymce', [
'required' => false,
'group' => 'Descriptions',
])
Yeah, exactly, when you specifically set a group, it defaults to null
.
Did you add:
zenstruck_form:
form_types:
group: true
to your config?
Yes, I have
zenstruck_form:
form_types:
ajax_entity_controller: true
ajax_entity: true
group: true
Can you check that https://github.com/kbond/ZenstruckFormBundle/blob/master/Form/Extension/GroupTypeExtension.php#L26 is being called?
Got a few of these, so if you "forget" to add a group to a field, then you would get the notice about group is not defined.
So added isset instead