logo       

[symfony-users] Doctrine newbie: msg#00826

symfony-users

Subject: [symfony-users] Doctrine newbie


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

--~--~---------~--~----~------------~-------~--~----~
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