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/ForeignKeyTestCase.php | |
parent | 109ff4ee3bec41d95a122c6a69ad204c5dcfe099 (diff) |
Changed RELATIONS declaration.
Diffstat (limited to 'tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php')
-rw-r--r-- | tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php | 6 |
1 files changed, 3 insertions, 3 deletions
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'),
);
|