Hi,

I want to set the real culture of my user at initialization. I've a very
strange issue with Doctrine and culture.

The application have the default culture set to "en".

For the example, I put this in an action method :

[...]
$this->getUser->setCulture('fr');
$this->test =  Doctrine::getTable('ProductType')
                      ->findAll();

If I initialize my user class with the code below :

[...]
public function initialize()
{
    parent::initialize();
}

The result for $test is ok, all localized columns are in 'french'


If I do Doctrine requests after the initialization like this :

public function initialize()
{
    parent::initialize();

   Doctrine::getTable(...)
       ->...;
}

The culture seems to be good, "getUser->getCulture()" prints 'fr' but all
Doctrine requests use the defaut culture 'en' and all request result are
badly localized.

I don't understant what's wrong.

Thank you for help.
Fabien

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to