What I’m trying to do is relatively simple but I can’t find documentation.
Let’s say I have a model Thing with a field label. The label field is internationalized.
How can I update all label fields from a model or an action?
(I’m using Doctrine)
You didn’t say which ORM you’re using so I assumed Doctrine.
You can update/set internationalized fields in the following way:
Of course if your object is already persisted you have to retrieve it first.
Read more in symfony and doctrine docs: