It's the same on doctrine, just when assigning relationships be sure
to use aliases instead of column names. For example instead of:

User:
  user_1:
    name: John
    age: 23

Phone:
  phone_1:
    phone: 2342323
    user_id: user_1

use this:

Phone:
  phone_1:
    phone: 23423223
    User: user_1


On Dec 1, 3:18 pm, Valentin Ceaprazaru <[EMAIL PROTECTED]> wrote:
> Hei
>
> I want to make a model in Doctrine and i need help because i'm new at
> this.
> So in simple words i need something like this:
>
> user sistem : i'll use sfGuardDoctrine
>
> songs table : each song will be written by a user, will be in a
> category, and will have comments
>
> comments table: each comment will be written by a user, will belong to
> a song
>
> category table : each song can belong to one or more categories
>
> I've seen in the askeet tutorial that, propel loaded the comments for
> each song by default. How can i do this in Doctrine?
>
> Thank you
> Valentin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to