Answer the question
In order to leave comments, you need to log in
Symfony 5, translating database content, who managed to implement it?
I tried to realize my idea.
Is it worth saying that it didn't work?
Sources.
Translating-database-content
DoctrineBehaviors
The
example is outrageously simple.
It works like this
$category = new Category();
$category->translate("ru")->setName("Вася");
$category->translate("en")->setName("Vasy");
$manager->persist($category);
$category->mergeNewTranslations();
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