Show
Ignore:
Timestamp:
10/01/08 21:51:45 (18 months ago)
Author:
jwage
Message:

[1.1] fixes #1307 Added ability to set default charset/collate options at manager, connection and record level.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1/UPGRADE_TO_1_1

    r5021 r5027  
    2121    $users = $q->execute(); // $q->free() is triggered 
    2222 
    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. 
    2424 
    2525    // Does not link until save() 
     
    3131    $user = Doctrine::getTable('User')->find(1); 
    3232    $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();