Changeset 8972
- Timestamp:
- 05/15/08 08:44:01 (5 months ago)
- Files:
-
- branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/sfPropelDatabaseSchema.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/test/unit/fixtures/new_schema.yml (modified) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/test/unit/fixtures/schema.xml (modified) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/test/unit/fixtures/schema.yml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/sfPropelDatabaseSchema.class.php
r8815 r8972 557 557 $this->database[$tb_name]['_attributes']['package'] : 558 558 $this->database['_attributes']['package']; 559 $extended_class = $this->database[$tb_name]['_attributes']['phpName'];560 559 560 $extended_class = isset($this->database[$tb_name]['_attributes']['phpName']) ? 561 $this->database[$tb_name]['_attributes']['phpName'] : 562 sfInflector::camelize($tb_name); 563 561 564 foreach ($column['inheritance'] as $key => $class) 562 565 { branches/1.1/lib/plugins/sfPropelPlugin/test/unit/fixtures/new_schema.yml
r8815 r8972 70 70 columns: 71 71 motto: longvarchar 72 73 History: 74 tableName: history 75 columns: 76 id: 77 type: { type: varchar(64) } 78 inheritance: 79 column: type 80 classes: 81 new_user: History_NewUser 82 new_page: History_NewPage branches/1.1/lib/plugins/sfPropelPlugin/test/unit/fixtures/schema.xml
r8815 r8972 84 84 </table> 85 85 86 <table name="history"> 87 <column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true" /> 88 <column name="type" type="varchar" size="64" inheritance="single"> 89 <inheritance extends="lib.model.History" key="new_user" class="History_NewUser" /> 90 <inheritance extends="lib.model.History" key="new_page" class="History_NewPage" /> 91 </column> 92 </table> 93 86 94 </database> branches/1.1/lib/plugins/sfPropelPlugin/test/unit/fixtures/schema.yml
r8815 r8972 53 53 ab_group_i18n: 54 54 motto: longvarchar 55 56 history: 57 _attributes: { phpName: History } 58 id: 59 type: { type: varchar(64) } 60 _inheritance: 61 column: type 62 classes: 63 new_user: History_NewUser 64 new_page: History_NewPage