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/ForeignKeyTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php') diff --git a/tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php b/tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php index 0c1da5d2..cbde7fa0 100644 --- a/tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php +++ b/tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php @@ -24,7 +24,7 @@ class Album extends SqliteRecord public $cover; - protected static $RELATIONS = array( + public static $RELATIONS = array( 'Tracks' => array(self::HAS_MANY, 'Track'), 'Artists' => array(self::HAS_MANY, 'Artist', 'album_artists'), 'cover' => array(self::HAS_ONE, 'Cover') @@ -42,7 +42,7 @@ class Artist extends SqliteRecord public $Albums = array(); - protected static $RELATIONS=array( + public static $RELATIONS=array( 'Albums' => array(self::HAS_MANY, 'Album', 'album_artists') ); @@ -60,7 +60,7 @@ class Track extends SqliteRecord public $Album; - protected static $RELATIONS = array( + public static $RELATIONS = array( 'Album' => array(self::BELONGS_TO, 'Album'), ); -- cgit v1.2.3