Changeset 5027 for branches/1.1/UPGRADE_TO_1_1
- Timestamp:
- 10/01/08 21:51:45 (18 months ago)
- Files:
-
- 1 modified
-
branches/1.1/UPGRADE_TO_1_1 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/UPGRADE_TO_1_1
r5021 r5027 21 21 $users = $q->execute(); // $q->free() is triggered 22 22 23 [r5019](http://trac.doctrine-project.org/changeset/5019) - `unlink()` and `link()` have been changed to not delete references until `save()` is called on the object 23 [r5019](http://trac.doctrine-project.org/changeset/5019) - `unlink()` and `link()` have been changed to not delete references until `save()` is called on the object. Also, fixed synchronizeWithArray() to synchronize many to many relationships. 24 24 25 25 // Does not link until save() … … 31 31 $user = Doctrine::getTable('User')->find(1); 32 32 $user->link('Groups', array(1, 2, 3), true); 33 34 $user = Doctrine::getTable('User')->find(1); 35 $userArray = array( 36 'Group' => array( 37 '_identifiers' => array( 38 1 => true, 39 2 => true, 40 3 => false) 41 )); 42 43 $user->synchronizeWithArray($userArray); 44 $user->save();