Changeset 3811 for trunk/tests/models
- Timestamp:
- 02/16/08 19:10:16 (11 months ago)
- Location:
- trunk/tests/models
- Files:
-
- 3 modified
-
cms/CmsUser.php (modified) (1 diff)
-
forum/ForumAdministrator.php (modified) (1 diff)
-
forum/ForumUser.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/models/cms/CmsUser.php
r3779 r3811 4 4 public static function initMetadata($class) 5 5 { 6 $class-> setColumn('id', 'integer', 4, array('primary' => true, 'autoincrement' => true));7 $class-> setColumn('username', 'string', 255);8 $class-> setColumn('name', 'string', 255);6 $class->mapColumn('id', 'integer', 4, array('primary' => true, 'autoincrement' => true)); 7 $class->mapColumn('username', 'string', 255); 8 $class->mapColumn('name', 'string', 255); 9 9 } 10 10 } -
trunk/tests/models/forum/ForumAdministrator.php
r3739 r3811 5 5 public static function initMetadata($class) 6 6 { 7 $class-> addMappedColumn('foo', 'string', 50);7 $class->mapColumn('foo', 'string', 50); 8 8 } 9 9 } -
trunk/tests/models/forum/ForumUser.php
r3741 r3811 15 15 16 16 // the discriminator column 17 $class-> addMappedColumn('dtype', 'string', 50);17 $class->mapColumn('dtype', 'string', 50); 18 18 19 19 // property mapping 20 $class-> addMappedColumn('id', 'integer', 4, array(20 $class->mapColumn('id', 'integer', 4, array( 21 21 'primary' => true, 22 22 'autoincrement' => true)); 23 $class-> addMappedColumn('username', 'string', 50);23 $class->mapColumn('username', 'string', 50); 24 24 25 25 }