Changeset 3263 for branches/1.0/models
- Timestamp:
- 11/28/07 17:48:19 (14 months ago)
- Location:
- branches/1.0/models
- Files:
-
- 2 modified
-
ColumnAliasTest.php (modified) (1 diff)
-
SymfonyRecord.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/models/ColumnAliasTest.php
r2353 r3263 5 5 { 6 6 $this->hasColumn('column1 as alias1', 'string', 200); 7 $this->hasColumn('column2 as alias2', 'integer', 11); 7 $this->hasColumn('column2 as alias2', 'integer', 4); 8 $this->hasColumn('another_column as anotherField', 'string', 50); 9 $this->hasColumn('book_id as bookId', 'integer', 4); 8 10 } 9 public function setUp() 11 public function setUp() 10 12 { 13 $this->hasOne('Book as book', array('local' => 'book_id', 'foreign' => 'id')); 11 14 } 12 15 } -
branches/1.0/models/SymfonyRecord.php
r3142 r3263 1 1 <?php 2 require_once('PluginSymfonyRecord.php'); 3 2 4 class SymfonyRecord extends PluginSymfonyRecord 3 5 {