Ticket #804 (closed defect: fixed)
Building migrations from database doesn't work
| Reported by: | deresh | Owned by: | jwage |
|---|---|---|---|
| Priority: | major | Milestone: | 2.0.0 (OLD) |
| Component: | Migrations | Version: | 0.9.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | ||
| Status: | Has Patch: |
Description
it fails with:
PHP Fatal error: Class 'BaseSfGuardGroup?' not found in /tmp/tmp_doctrine_models/SfGuardGroup.php on line 6 PHP Stack trace: PHP 1. {main}() /usr/bin/symfony:0 PHP 2. include() /usr/bin/symfony:39 PHP 3. pakeApp->run() /usr/share/php/data/symfony/bin/symfony.php:174 PHP 4. pakeTask->invoke() /usr/share/php/symfony/vendor/pake/pakeApp.class.php:175 PHP 5. pakeTask->execute() /usr/share/php/symfony/vendor/pake/pakeTask.class.php:181 PHP 6. call_user_func_array() /usr/share/php/symfony/vendor/pake/pakeTask.class.php:218 PHP 7. run_doctrine_generate_migrations_db() /usr/share/php/symfony/vendor/pake/pakeTask.class.php:0 PHP 8. _call_doctrine_cli() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/data/tasks/sfPakeDoctrine.php:493 PHP 9. Doctrine_Cli->run() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/data/tasks/sfPakeDoctrine.php:737 PHP 10. Doctrine_Cli->_run() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cli.php:88 PHP 11. Doctrine_Task_GenerateMigrationsDb->execute() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cli.php:149 PHP 12. Doctrine::generateMigrationsFromDb() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateMigrationsDb.php:41 PHP 13. Doctrine_Migration_Builder->generateMigrationsFromDb() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine.php:909 PHP 14. Doctrine_Migration_Builder->generateMigrationsFromModels() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration/Builder.php:145 PHP 15. Doctrine::loadModels() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration/Builder.php:161 PHP 16. require_once() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine.php:560
Fatal error: Class 'BaseSfGuardGroup?' not found in /tmp/tmp_doctrine_models/SfGuardGroup.php on line 6
Call Stack:
0.0002 57660 1. {main}() /usr/bin/symfony:0 0.0011 106680 2. include('/usr/share/php/data/symfony/bin/symfony.php') /usr/bin/symfony:39 0.0648 1916768 3. pakeApp->run() /usr/share/php/data/symfony/bin/symfony.php:174 0.0740 2078288 4. pakeTask->invoke() /usr/share/php/symfony/vendor/pake/pakeApp.class.php:175 0.0746 2079008 5. pakeTask->execute() /usr/share/php/symfony/vendor/pake/pakeTask.class.php:181 0.0746 2079008 6. call_user_func_array() /usr/share/php/symfony/vendor/pake/pakeTask.class.php:218 0.0746 2079008 7. run_doctrine_generate_migrations_db() /usr/share/php/symfony/vendor/pake/pakeTask.class.php:0 0.3069 5104944 8. _call_doctrine_cli() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/data/tasks/sfPakeDoctrine.php:493 0.3153 5509936 9. Doctrine_Cli->run() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/data/tasks/sfPakeDoctrine.php:737 0.3153 5509936 10. Doctrine_Cli->_run() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cli.php:88 0.3155 5510808 11. Doctrine_Task_GenerateMigrationsDb->execute() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Cli.php:149 0.3155 5510808 12. Doctrine::generateMigrationsFromDb() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Task/GenerateMigrationsDb.php:41 0.3163 5563664 13. Doctrine_Migration_Builder->generateMigrationsFromDb() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine.php:909 0.3698 6058528 14. Doctrine_Migration_Builder->generateMigrationsFromModels() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration/Builder.php:145 0.3698 6058528 15. Doctrine::loadModels() /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine/Migration/Builder.php:161 0.3783 6857852 16. require_once('/tmp/tmp_doctrine_models/SfGuardGroup.php') /home/kreso/workspace/ephshop/plugins/sfDoctrinePlugin/lib/doctrine/Doctrine.php:560
when Doctrine::loadModels() is called autoload doesn't pickup BaseXXXX.php classes in temporary directory.