Hi Jon,
I am using a yaml editor but the error was logical, not syntactical (I
left a field without a type).
A reference to the schema file causing the error and a line number
would be very helpful. Should I open a ticket for it?
There's another logical issue I've noticed and that's if I include the
same definition twice, as far as I remember the second definition is
used and no warning is shown. I believe a warning would be of great
help.
Thanks :)
On Jan 30, 1:44 am, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
> Using a yaml editor with syntax highlighting and code completion help with
> those type of yaml syntax errors.
>
> - Jon
>
> On Jan 29, 2008 2:59 PM, awe <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Is there a way to verify my *schema.yml files and see where I am
> > making Doctrine errors?
>
> > At the moment when something is wrong there's no way for me to know
> > where I went wrong so it's a bit uneasy to work that way.
>
> > For example, here's an error I've received and cannot decipher into
> > something usable:
>
> > [sfException]
>
> > Unknown field type ''.
>
> > #0 C:\colnect\plugins\sfDoctrinePLugin\lib\doctrine\Doctrine
> > \Cli.php(88): Doct
> > rine_Cli->_run(Array)
> > #1 C:\colnect\plugins\sfDoctrinePLugin\data\tasks
> > \sfPakeDoctrine.php(716): Doc
> > trine_Cli->run(Array)
> > #2 C:\colnect\plugins\sfDoctrinePLugin\data\tasks
> > \sfPakeDoctrine.php(206): _ca
> > ll_doctrine_cli('create-tables')
> > #3 C:\colnect\plugins\sfDoctrinePLugin\data\tasks
> > \sfPakeDoctrine.php(367): run
> > _doctrine_insert_sql(Object(pakeTask), Array)
> > #4 [internal function]: run_doctrine_rebuild_db(Object(pakeTask),
> > Array, Array
> > )
> > #5 C:\wamp\bin\php\php5.2.5\PEAR\symfony\vendor\pake
> > \pakeTask.class.php(218):
> > call_user_func_array('run_doctrine_re...', Array)
> > #6 C:\wamp\bin\php\php5.2.5\PEAR\symfony\vendor\pake
> > \pakeTask.class.php(181):
> > pakeTask->execute(Array, Array)
> > #7 C:\wamp\bin\php\php5.2.5\PEAR\symfony\vendor\pake
> > \pakeApp.class.php(175): p
> > akeTask->invoke(Array, Array)
> > #8 C:\wamp\bin\php\php5.2.5\PEAR\data\symfony\bin\symfony.php(174):
> > pakeApp->r
> > un(NULL, NULL, false)
> > #9 C:\colnect\symfony(14): include('C:\wamp\bin\php...')
>
> > #10 {main}
>
> --
> Jonathan Wagehttp://www.jwage.comhttp://www.centresource.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---