This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » How to use Doctrine AND Propel in the same app ?
How to use Doctrine AND Propel in the same app ? [message #103476] Tue, 03 August 2010 12:48
Gaff  is currently offline Gaff
Messages: 4
Registered: March 2010
Junior Member
Hello,

I have an application runnning with Doctrine (and symfony 1.4). I must protect it with sfGuard.

Our version of sfGuard (overloaded with new tables, relation and mechanisms) is running on Propel - I do not have the time to adapt our sfGuard to Doctrine.

When I activate both ORM plugins, I've got the following error :
D:\symfony cc
PHP Fatal error:  Uncaught exception 'sfCommandException' with message 'The task named "configure:database" in "sfDoctrineConfigureDatabaseTask" task
is already registered by the "sfPropelConfigureDatabaseTask" task.' in D:\wamp\bin\php\symfony\symfony14\lib\command\sfCommandApplication.class.php:14
2
Stack trace:
#0 D:\wamp\bin\php\symfony\symfony14\lib\command\sfCommandApplication.class.php(129): sfCommandApplication->registerTask(Object(sfDoctrineConfigureDat
abaseTask))
#1 D:\wamp\bin\php\symfony\symfony14\lib\command\sfCommandApplication.class.php(63): sfCommandApplication->registerTasks()
#2 D:\wamp\bin\php\symfony\symfony14\lib\command\cli.php(19): sfCommandApplication->__construct(Object(sfEventDispatcher), NULL, Array)
#3 D:\wamp\bin\php\symfony\symfony14\data\bin\symfony(37): include('D:\wamp\bin\php...')
#4 {main}
  thrown in D:\wamp\bin\php\symfony\symfony14\lib\command\sfCommandApplication.class.php on line 142

Fatal error: Uncaught exception 'sfCommandException' with message 'The task named "configure:database" in "sfDoctrineConfigureDatabaseTask" task is al
ready registered by the "sfPropelConfigureDatabaseTask" task.' in D:\wamp\bin\php\symfony\symfony14\lib\command\sfCommandApplication.class.php:142
Stack trace:
#0 D:\wamp\bin\php\symfony\symfony14\lib\command\sfCommandApplication.class.php(129): sfCommandApplication->registerTask(Object(sfDoctrineConfigureDat
abaseTask))
#1 D:\wamp\bin\php\symfony\symfony14\lib\command\sfCommandApplication.class.php(63): sfCommandApplication->registerTasks()
#2 D:\wamp\bin\php\symfony\symfony14\lib\command\cli.php(19): sfCommandApplication->__construct(Object(sfEventDispatcher), NULL, Array)
#3 D:\wamp\bin\php\symfony\symfony14\data\bin\symfony(37): include('D:\wamp\bin\php...')
#4 {main}
  thrown in D:\wamp\bin\php\symfony\symfony14\lib\command\sfCommandApplication.class.php on line 142


It there is someone who knows how to use Doctrine and Propel at the same time ?
For example, is it possible to have two database configuration file and to route each ORM to the good one ?

Thank you very much in advance.

[Updated on: Tue, 03 August 2010 12:49]

Previous Topic:prestaForumConnector and DoctrineApplyPLugin
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software