Author: jwage
Date: 2008-08-26 22:17:30 +0100 (Tue, 26 Aug 2008)
New Revision: 4816
Modified:
branches/1.0/docs/manual/en/relations.txt
Log:
fixes #1227
Modified: branches/1.0/docs/manual/en/relations.txt
===================================================================
--- branches/1.0/docs/manual/en/relations.txt 2008-08-26 20:02:32 UTC (rev
4815)
+++ branches/1.0/docs/manual/en/relations.txt 2008-08-26 21:17:30 UTC (rev
4816)
@@ -344,7 +344,13 @@
$this->hasColumn('group_id', 'integer', null, array('primary' =>
true));
}
}
+</code>
+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.
+
+Now lets play around with the new models and create a user and assign it some
groups.
+
+<code type="php">
$user = new User();
// add two groups
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" 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.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---