Have you tried to create a task extending from sfDoctrineBaseTask?

I have made it, and in order to access my database, I typed this line
at the beginning of the execute method:

$databaseManager = new sfDatabaseManager($this->configuration);



So, when calling the task I got this error:

Catchable fatal error: Argument 1 passed to
sfDatabaseManager::__construct() must be an instance of
sfApplicationConfiguration, instance of ProjectConfiguration given,
called in /var/www/site/lib/task/myTask.class.php on line 26 and
defined in /usr/share/php/symfony/database/sfDatabaseManager.class.php
on line 34



Why isn't it working? (I want to avoid the
ProjectConfiguration::getApplicationConfiguration call)

--~--~---------~--~----~------------~-------~--~----~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to