You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The JSON field should be mapped back to a string, since the Doctrine entity treats it as an array via json_decode().
Even then, using either TextField or TextAreaField fails with a RuntimeException:
The value of the "foo" field of the entity with ID = "1" can't be converted into a string, so it cannot be represented by a TextField or a TextareaField.
As described in #5680 , the docs recommend mapping
json
toTextField
,TextareaField
, orCodeEditorField
.The JSON field should be mapped back to a
string
, since the Doctrine entity treats it as anarray
viajson_decode()
.Even then, using either
TextField
orTextAreaField
fails with aRuntimeException
:Using
CodeEditorField
works, thanks to #5759.To Reproduce EasyAdmin 4.18.0
The text was updated successfully, but these errors were encountered: