Changeset 2274 for trunk/tests

Show
Ignore:
Timestamp:
09/29/2007 05:07:12 PM (16 months ago)
Author:
xue
Message:

Changed RELATIONS declaration.

Location:
trunk/tests/simple_unit/ActiveRecord
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php

    r1899 r2274  
    2525        public $cover; 
    2626 
    27         protected static $RELATIONS = array( 
     27        public static $RELATIONS = array( 
    2828                'Tracks' => array(self::HAS_MANY, 'Track'), 
    2929                'Artists' => array(self::HAS_MANY, 'Artist', 'album_artists'), 
     
    4343        public $Albums = array(); 
    4444 
    45         protected static $RELATIONS=array( 
     45        public static $RELATIONS=array( 
    4646                'Albums' => array(self::HAS_MANY, 'Album', 'album_artists') 
    4747        ); 
     
    6161        public $Album; 
    6262 
    63         protected static $RELATIONS = array( 
     63        public static $RELATIONS = array( 
    6464                'Album' => array(self::BELONGS_TO, 'Album'), 
    6565        ); 
  • trunk/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php

    r1902 r2274  
    2929 
    3030    //define the $player member having has many relationship with PlayerRecord 
    31     protected static $RELATIONS=array 
     31    public static $RELATIONS=array 
    3232    ( 
    3333        'players' => array(self::HAS_MANY, 'PlayerRecord'), 
     
    5151    public $profile; 
    5252 
    53     protected static $RELATIONS=array 
     53    public static $RELATIONS=array 
    5454    ( 
    5555        'skills' => array(self::HAS_MANY, 'SkillRecord', 'player_skills'), 
     
    9292    public $player; 
    9393 
    94     protected static $RELATIONS=array 
     94    public static $RELATIONS=array 
    9595    ( 
    9696        'player' => array(self::BELONGS_TO, 'PlayerRecord'), 
     
    111111    public $players=array(); 
    112112 
    113     protected static $RELATIONS=array 
     113    public static $RELATIONS=array 
    114114    ( 
    115115        'players' => array(self::HAS_MANY, 'PlayerRecord', 'player_skills'), 
  • trunk/tests/simple_unit/ActiveRecord/records/ItemRecord.php

    r1899 r2274  
    2020        public $related_item_id; 
    2121 
    22         protected static $RELATIONS=array 
     22        public static $RELATIONS=array 
    2323        ( 
    2424                'related_items' => array(self::HAS_MANY, 'ItemRecord', 'related_items.(related_item_id)'),