Gedmo_translatable vs gedmo_translator - StofDoctrineExtensionsBundle - Symfony2

What is the difference between these extensions in the StofDoctrineExtensionsBundle.

gedmo_translatable gedmo_translator

+4
source share
2 answers

Tips from the Behavioral Extensions Doctrine , DoctrineExtensions and StofDoctrineExtensionsBundle documentation,

Translatable gives you a very convenient solution for translating records into different languages. In other words, it is a behavioral extension that works like some of the most commonly used behaviors, leaving domain objects as clean as possible. Annotations make it easy to understand the intended behavior of the properties of your objects.

A translator is an explicit way of processing translations, for example, here is the class used to process the object / property of a translation.

+2
source

Here is a link that explains exactly what Translator is (and how it can be better than Translatable in some use cases).

+2
source

Source: https://habr.com/ru/post/1478907/


All Articles