umanit/translation-bundle

Move business code out of TranslatableTrait

Closed this issue · 1 comments

The setLocale() method of TranslatableTrait contains some business logic that should be executed in a doctrine listener rather than within the trait. For now, not using the trait can lead to buggy translations.

Actually the business code wasn't useful at all for TranslationBundle. Moved it in my own project.