You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0
down vote
favorite
I'm trying to find documentation for retrieving translated records via translatable (StofDoctrineExtensionsBundle) when executing a console command from Symfony. This command call a service that retrieves data from Doctrine using the
There service runs a foreach ($users as $user) so $lang= $user->getLang() as I need that doctrine returns localized values depending on the laguage/locale of each users in my DB.
If I call this service from a URL (a Controller) translatable works fine, but if I run the command from the CLI , Translatable is not fired or fails to force the locale ($lang). Any idea to solve that? Thanks!
The text was updated successfully, but these errors were encountered:
0
down vote
favorite
I'm trying to find documentation for retrieving translated records via translatable (StofDoctrineExtensionsBundle) when executing a console command from Symfony. This command call a service that retrieves data from Doctrine using the
There service runs a foreach ($users as $user) so $lang= $user->getLang() as I need that doctrine returns localized values depending on the laguage/locale of each users in my DB.
If I call this service from a URL (a Controller) translatable works fine, but if I run the command from the CLI , Translatable is not fired or fails to force the locale ($lang). Any idea to solve that? Thanks!
The text was updated successfully, but these errors were encountered: