Advertisement
yitznewton

doctrine schema.yml m:n

Mar 7th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Person:
  2. columns:
  3. # columns go here
  4. relations:
  5. Towns:
  6. class: Town
  7. refClass: PersonTown
  8. local: person_id
  9. foreign: town_id
  10. foreignAlias: Persons
  11.  
  12. Town:
  13. columns:
  14. # columns go here
  15.  
  16. PersonTown:
  17. columns:
  18. person_id: { type: integer, primary: true }
  19. town_id: { type: integer, primary: true }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement