KnpLabs / DoctrineBehaviors Translatable - currentLocale = null
- by Ruben
Using the trait \Knp\DoctrineBehaviors\Model\Translatable\Translation inside an Entity, I see that the property currentLocale is never setted , so we always obtain the default locale ('en') in all the calls to $this->translate().
If I change this getDefaultLocale, all the translations are made correctly, so I think that is no problem with the…