Closed GCalmels closed 2 years ago
Yes, would by nice to know generally if its possible to use EA field types in normal symfony forms?
I had the same issue. I just updated EasyAdmin to the latest version 3.1.4 It was fixed in this PR https://github.com/EasyCorp/EasyAdminBundle/pull/3610
Hey @vic-blt, it's not really the same issue. The PR only checks if ea_field
is not null but in my example, I need ea_field
to be not null but I don't know how...
For example, code_editor_widget
will check language
in ea_field
so we cannot only check if ea_field
is not null, we need to add these attributes in our FormType.
Have the same issue, I've compared to v2 and same code worked there.
Closing because this might have been fixed in one of the latest releases. If not, please try to find the exact place in the form theme where this fails and try to make a pull request adding some Twig |default
filter when needed. Thanks!
I created a form : collection => collection => TextEditorType and in
src/Resources/views/crud/form_theme.html.twig
forea_text_editor_widget
and forea_code_editor_widget
, we needform.vars.ea_crud_form.ea_field
not null... I would like to know is there is a way to add data to ea_field viaFormType
?My code
And in
ProjectSectionType
, there is an other collection of FormTypeAnd in
ProjectSectionTranslationType
, there is a TextEditorType :