Well, in doctrine you need to put your schema.yml file in the folder config/doctrine/schema.yml
as for the syntax, I recommend you this readings: http://doctrine.pengus.net/index.php/documentation/manual?chapter=relations http://doctrine.pengus.net/index.php/documentation/manual?chapter=schema-files - JoaquĆn On Dec 3, 2:11 am, Valentin Ceaprazaru <[EMAIL PROTECTED]> wrote: > Hello, > Thank for your reply, but i'm having trouble making the schema.yml > file to build the model. I don't understand how the "relations" tags > are to be set in order to have the tables like i described them in the > first post. > > On Dec 2, 8:44 pm, Joaquin Bravo <[EMAIL PROTECTED]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
