diff options
author | wei <> | 2007-10-08 03:24:07 +0000 |
---|---|---|
committer | wei <> | 2007-10-08 03:24:07 +0000 |
commit | 4ceba82b9863f2c6323cbe00407e4bfbedbfc1cd (patch) | |
tree | bc93498b5bf77b25c5a2d5a87ffaa4f8a9b70728 /tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php | |
parent | aedbfe04daaaa0baa8e97c4d7d13e8a1f9d867cb (diff) |
Allow active records to have multiple foreign key references to the same table. Add TXCache.
Diffstat (limited to 'tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php')
-rw-r--r-- | tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php b/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php index 36864f77..026efb4d 100644 --- a/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php +++ b/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php @@ -52,7 +52,7 @@ class PlayerRecord extends BaseFkRecord public static $RELATIONS=array
(
- 'skills' => array(self::HAS_MANY, 'SkillRecord', 'player_skills'),
+ 'skills' => array(self::MANY_TO_MANY, 'SkillRecord', 'player_skills'),
'team' => array(self::BELONGS_TO, 'TeamRecord'),
'profile' => array(self::HAS_ONE, 'ProfileRecord'),
);
@@ -112,7 +112,7 @@ class SkillRecord extends BaseFkRecord public static $RELATIONS=array
(
- 'players' => array(self::HAS_MANY, 'PlayerRecord', 'player_skills'),
+ 'players' => array(self::MANY_TO_MANY, 'PlayerRecord', 'player_skills'),
);
public static function finder($className=__CLASS__)
@@ -236,6 +236,7 @@ class ForeignObjectUpdateTest extends UnitTestCase $this->assertEqual($player4->skills[1]->name, 'Skip');
$this->assertEqual($player4->skills[2]->name, 'Push');
}
+//*/
}
?>
\ No newline at end of file |