This only works if your task takes an application as an argument.
Fabien
--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.com | aide-de-camp.org
Tél: +33 1 40 99 80 80
Yohan GIARELLI wrote:
> Hello all,
>
> I've got a problem with the 1.1 tasks and Propel.
>
> When I do
>
> <code>
> protected function execute($arguments = array(), $options = array())
> {
> $databaseManager = new sfDatabaseManager($this->configuration);
> }
> </code>
>
> to use the database layer i've got this message :
>
> <code>
> Catchable fatal error: Argument 1 passed to
> sfDatabaseManager::__construct() must be an instance of
> sfApplicationConfiguration, instance of ProjectConfiguration given,
> called in...
> </code>
>
> I don't understand... ProjectConfiguration is a child of
> sfApplicationConfiguration and this code come from the cookbook...
>
> Thanks in advance
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---