hi all,
could anybody look into this please?
it takes about five minutes to rebuild my setting and then you're
stuck.
$symfony doctrine-build-model will fail.
I found out though why plugin schemas were not loaded though. that's
because the script fails before it reaches the plugin part.
cheers
/christian
On 22 Nov., 16:33, Christian Schaefer <[EMAIL PROTECTED]> wrote:
> now I copied my schema file to /config/doctrine/cs-test.schema.yml and
> I no longer get an empty array.
>
> array(1) {
> [0]=>
> string(65) "/var/www/ical.ly/dynam/config/doctrine/cs-
> commentables.schema.yml"
>
> }
>
> still the schema file in my plugin is not found and the before
> metioned errors remain...
>
> doing a 'var_dump($schema);' on line 87 (86 before) prints me my
> schema file in array structure. BUT there is no 'schema' hash index in
> the array. and that's where it breaks.
>
> can somebbody confirm/help/fix please?
>
> cheers
> /christian
>
> On 22 Nov., 16:17, Christian Schaefer <[EMAIL PROTECTED]> wrote:
>
> > 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...)
> > 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
-~----------~----~----~----~------~----~------~--~---