Changeset 2274 for trunk/tests
- Timestamp:
- 09/29/2007 05:07:12 PM (16 months ago)
- Location:
- trunk/tests/simple_unit/ActiveRecord
- Files:
-
- 3 modified
-
ForeignKeyTestCase.php (modified) (3 diffs)
-
ForeignObjectUpdateTest.php (modified) (4 diffs)
-
records/ItemRecord.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/simple_unit/ActiveRecord/ForeignKeyTestCase.php
r1899 r2274 25 25 public $cover; 26 26 27 p rotectedstatic $RELATIONS = array(27 public static $RELATIONS = array( 28 28 'Tracks' => array(self::HAS_MANY, 'Track'), 29 29 'Artists' => array(self::HAS_MANY, 'Artist', 'album_artists'), … … 43 43 public $Albums = array(); 44 44 45 p rotectedstatic $RELATIONS=array(45 public static $RELATIONS=array( 46 46 'Albums' => array(self::HAS_MANY, 'Album', 'album_artists') 47 47 ); … … 61 61 public $Album; 62 62 63 p rotectedstatic $RELATIONS = array(63 public static $RELATIONS = array( 64 64 'Album' => array(self::BELONGS_TO, 'Album'), 65 65 ); -
trunk/tests/simple_unit/ActiveRecord/ForeignObjectUpdateTest.php
r1902 r2274 29 29 30 30 //define the $player member having has many relationship with PlayerRecord 31 p rotectedstatic $RELATIONS=array31 public static $RELATIONS=array 32 32 ( 33 33 'players' => array(self::HAS_MANY, 'PlayerRecord'), … … 51 51 public $profile; 52 52 53 p rotectedstatic $RELATIONS=array53 public static $RELATIONS=array 54 54 ( 55 55 'skills' => array(self::HAS_MANY, 'SkillRecord', 'player_skills'), … … 92 92 public $player; 93 93 94 p rotectedstatic $RELATIONS=array94 public static $RELATIONS=array 95 95 ( 96 96 'player' => array(self::BELONGS_TO, 'PlayerRecord'), … … 111 111 public $players=array(); 112 112 113 p rotectedstatic $RELATIONS=array113 public static $RELATIONS=array 114 114 ( 115 115 'players' => array(self::HAS_MANY, 'PlayerRecord', 'player_skills'), -
trunk/tests/simple_unit/ActiveRecord/records/ItemRecord.php
r1899 r2274 20 20 public $related_item_id; 21 21 22 p rotectedstatic $RELATIONS=array22 public static $RELATIONS=array 23 23 ( 24 24 'related_items' => array(self::HAS_MANY, 'ItemRecord', 'related_items.(related_item_id)'),
