Answer the question
In order to leave comments, you need to log in
How to make symfony form json type?
The Doctrine entity has a features property of type json, which should store features in key-value format. The admin panel uses CollectionType for the custom type KeyValueType (two fields: key and value). Everything works, but it turns out redundant:
[
{"key": "Материал", "value": "металлический каркас"}, {"key": "Цвет подставки", "value": "черный"}
]
[
{"Материал": "металлический каркас"}, {"Цвет подставки": "черный"}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question