hi all, I am just starting a small new private project to develop some little plugins on symfony 1.1 and doctrine 1.0.
I installed both (@see: http://prototyp.ical.ly/index.php/2007/11/21/how-to-work-with-symfony-11dev-and-doctrine-10/) and now did the following: $ symfony generate:app tester $ mkdir -p plugins/cstestPlugin/config/doctrine $ vi plugins/cstestPlugin/config/doctrine/cs-test.schema.yml >> csComment: columns: id: type: integer(4) primary: true autoincrement: true << so you see there is very little going on just a small table with an auto-increment primary key. I expected to be able to generate a (useless but working) model by running the following: $ symfony doctrine:build-model but instead of a few nice classes I got the following error messages: Warning: Invalid argument supplied for foreach() in /var/www/ical.ly/ dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 93 Warning: Invalid argument supplied for foreach() in /var/www/ical.ly/ dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 Warning: Invalid argument supplied for foreach() in /var/www/ical.ly/ dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 Warning: Invalid argument supplied for foreach() in /var/www/ical.ly/ dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 trying doctrine:build-all instead got me this: PHP Notice: Undefined index: schema in /var/www/ical.ly/dynam/ plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 87 Notice: Undefined index: schema in /var/www/ical.ly/dynam/plugins/ sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 87 PHP Warning: Invalid argument supplied for foreach() in /var/www/ ical.ly/dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 93 Warning: Invalid argument supplied for foreach() in /var/www/ical.ly/ dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 93 PHP Notice: Undefined index: schema in /var/www/ical.ly/dynam/ plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 122 Notice: Undefined index: schema in /var/www/ical.ly/dynam/plugins/ sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 122 PHP Warning: Invalid argument supplied for foreach() in /var/www/ ical.ly/dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 Warning: Invalid argument supplied for foreach() in /var/www/ical.ly/ dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 PHP Notice: Undefined index: schema in /var/www/ical.ly/dynam/ plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 122 Notice: Undefined index: schema in /var/www/ical.ly/dynam/plugins/ sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 122 PHP Warning: Invalid argument supplied for foreach() in /var/www/ ical.ly/dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 Warning: Invalid argument supplied for foreach() in /var/www/ical.ly/ dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 PHP Notice: Undefined index: schema in /var/www/ical.ly/dynam/ plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 122 Notice: Undefined index: schema in /var/www/ical.ly/dynam/plugins/ sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 122 PHP Warning: Invalid argument supplied for foreach() in /var/www/ ical.ly/dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 Warning: Invalid argument supplied for foreach() in /var/www/ical.ly/ dynam/plugins/sfDoctrinePlugin/lib/task/ sfDoctrineBuildModelTask.class.php on line 124 I think 'PHP Notice: Undefined index: schema' gives it away. the schema itself can not be found. I added a 'var_dump($schemas);' in sfDoctrineBuildModelTask.class.php on line 83 and the printout showed an empty array. can anyone spot where I'm going wrong? cheers /christian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs?hl=en -~----------~----~----~----~------~----~------~--~---
