diff options
author | xue <> | 2007-09-29 22:07:12 +0000 |
---|---|---|
committer | xue <> | 2007-09-29 22:07:12 +0000 |
commit | 54e9feab491bcf8d1a95b486b68605cb4441e603 (patch) | |
tree | bffc84037861293872f5db616345888ffbd0e453 /tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php | |
parent | 109ff4ee3bec41d95a122c6a69ad204c5dcfe099 (diff) |
Changed RELATIONS declaration.
Diffstat (limited to 'tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php')
-rw-r--r-- | tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php b/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php index ad64e4b6..36864f77 100644 --- a/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php +++ b/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php @@ -28,7 +28,7 @@ class TeamRecord extends BaseFkRecord public $players=array();
//define the $player member having has many relationship with PlayerRecord
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'players' => array(self::HAS_MANY, 'PlayerRecord'),
);
@@ -50,7 +50,7 @@ class PlayerRecord extends BaseFkRecord private $_skills;
public $profile;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'skills' => array(self::HAS_MANY, 'SkillRecord', 'player_skills'),
'team' => array(self::BELONGS_TO, 'TeamRecord'),
@@ -91,7 +91,7 @@ class ProfileRecord extends BaseFkRecord public $player;
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'player' => array(self::BELONGS_TO, 'PlayerRecord'),
);
@@ -110,7 +110,7 @@ class SkillRecord extends BaseFkRecord public $players=array();
- protected static $RELATIONS=array
+ public static $RELATIONS=array
(
'players' => array(self::HAS_MANY, 'PlayerRecord', 'player_skills'),
);
|