Hello, My first guess is that the import script is started from another php process. So the 'context' does not exist.
On Tue, Oct 21, 2008 at 12:19 AM, Loïc Vernet <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use sfContext::getInstance when inserting fixtures but i get > this message: > > $ ./symfony propel:data-load frontend >>> propel load data from "C:/wamp/www/project/data/fixtures" > The "default" context does not exist. > > related model code: > > public function computeFullNameForSlug() > { > $context = sfContext::getInstance(); > $default_slug_culture = sfConfig('app_slug_default_culture'); > $country = $context->getI18N()->getCountry($this->getCountry(), > $default_slug_culture); > ... > > > Is it a bug ? Or do i miss something ? Should i create a ticket ? > > One strange thing is that when using propel:build-all-load , the context is > Ok at the beginning when not when inserting fixture. > > ++ COil > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la meilleure protection > possible contre les messages non sollicités > http://mail.yahoo.fr Yahoo! Mail > > > -- Thomas Rabaix Internet Consultant --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---