logo       

[symfony-users] Re: Doctrine newbie: msg#00827

symfony-users

Subject: [symfony-users] Re: Doctrine newbie


I got it ... it's the fixtures

I wrote it like Propel style using:

"city_id: newyork"

:)

On Wed, Jul 29, 2009 at 9:29 PM, Sid Bachtiar<sid.bachtiar@xxxxxxxxx> wrote:
> Hi,
>
> I'm learning Symfony with Doctrine at the moment and stuck
>
> This schema:
>
> City:
>  columns:
>    id:
>      type: integer
>      primary: true
>      autoincrement: true
>    name:
>      type: string(50)
>      notnull: true
>
> Suburb:
>  columns:
>    id:
>      type: integer
>      primary: true
>      autoincrement: true
>    name:
>      type: string(50)
>      notnull: true
>    city_id:
>      type: integer
>      notnull: true
>  relations:
>    City:
>      foreignAlias: Suburbs
>
> Giving me:
>
> Validation failed in class Suburb
>
>    1 field had validation error:
>
>      * 1 validator failed on city_id (type)
>
> What is wrong with the schema? I tried changing few things but still
> getting the same error
>
> Regards,
>
> Sid
>



--
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
symfony-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise