Just copied and pasted your schema and still get the same problem. Funny about the typo - that was copied off the doctrine website!
I've tried it now on two different machines (pear installs with svn checkout of sfDoctrine) and in the sandbox and I always get the same error. As symfony 1.0.9 was only just released, I'm wondering if that's the problem. Will try now with an earlier version... Charley Tiggs wrote: > Note the addition of the "tableName" parameter. Also note that you > have a typo in the type parameter for the password type (but I'm > betting that's just a typo in recreating the schema for this email. > > Charley > > User: > tableName: user > columns: > id: > type: integer(4) > primary: true > autoincrement: true > username: > type: string(255) > password: > type: string(255) > > > On Dec 10, 2007, at 2:58 AM, Jonathan Franks wrote: > > >> I'm testing with a super simple schema... >> >> User: >> columns: >> id: >> type: integer(4) >> primary: true >> autoincrement: true >> username: >> type: string(255) >> password: >> type: stirng(255) >> >> But i get the same error message. The cache has been cleared. >> >> Charley Tiggs wrote: >> >>> Check your schema. I think I ran into this problem where the schema >>> was incorrectly defined. Unfortunately, the documentation is not yet >>> as accurate as it needs to be about using schema.yml. You may also >>> need to clear your cache. >>> >>> Charley >>> >>> On Dec 9, 2007, at 5:20 PM, Jonathan Franks wrote: >>> >>> >>> >>>> I'm just trying out doctrine. I've followed the instructions on the >>>> wiki >>>> but get this error when I call doctrine tasks (like doctrine-build- >>>> model) >>>> >>>> >>>>> Warning: Invalid argument supplied for foreach() in >>>>> C:\wamp\www\sfcommerce\plugins\sfDoctrinePlugin\lib\doctrine >>>>> \Doctrine\Import\Schema.php >>>>> on line 332 >>>>> >>>>> Warning: Invalid argument supplied for foreach() in >>>>> C:\wamp\www\sfcommerce\plugins\sfDoctrinePlugin\lib\doctrine >>>>> \Doctrine\Import\Schema.php >>>>> on line 406 >>>>> >>>>> >>>> anybody else had this problem?? I'm using the sample schema from the >>>> doctrine website. Thanks, jonathan >>>> >>>> >>>> >>> >>> >> > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
