Changeset 4816
- Timestamp:
- 08/26/08 21:17:30 (10 months ago)
- Files:
-
- 1 modified
-
branches/1.0/docs/manual/en/relations.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/docs/manual/en/relations.txt
r4674 r4816 345 345 } 346 346 } 347 347 </code> 348 349 Notice how the relationship is bi-directional. Both User hasMany Group and Group hasMany User. This is required by Doctrine in order for Many2Many relationships to fully work. 350 351 Now lets play around with the new models and create a user and assign it some groups. 352 353 <code type="php"> 348 354 $user = new User(); 349 355