From 54e9feab491bcf8d1a95b486b68605cb4441e603 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 29 Sep 2007 22:07:12 +0000 Subject: Changed RELATIONS declaration. --- tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php') 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'), ); -- cgit v1.2.3