Changeset 3795
- Timestamp:
- 02/15/08 19:32:53 (17 months ago)
- Location:
- branches/0.10/lib/Doctrine/Import
- Files:
-
- 2 modified
-
Builder.php (modified) (3 diffs)
-
Schema.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Import/Builder.php
r3415 r3795 278 278 public function buildTableDefinition(array $definition) 279 279 { 280 // If the inheritance type if simple or column aggregation then we do not need a table definition281 if (isset($definition['inheritance']['type']) && ($definition['inheritance']['type'] == 'simple' || $definition['inheritance']['type'] == 'aggregation')) {282 return;283 }284 285 280 $ret = array(); 286 281 … … 315 310 if (isset($definition['options']) && is_array($definition['options']) && !empty($definition['options'])) { 316 311 $ret[$i] = $this->buildOptions($definition['options']); 317 $i++;318 }319 320 if (isset($definition['subclasses']) && is_array($definition['subclasses']) && !empty($definition['subclasses'])) {321 $ret[$i] = ' $this->setSubclasses(' . var_export($definition['subclasses'], true) . ');';322 312 $i++; 323 313 } … … 404 394 $i++; 405 395 } 396 } 397 398 if (isset($definition['inheritance']['keyField']) && isset($definition['inheritance']['keyValue'])) { 399 $i++; 400 $ret[$i] = " ".'$this->setInheritanceMap(array(\''.$definition['inheritance']['keyField'].'\' => \''.$definition['inheritance']['keyValue'].'\'));'; 406 401 } 407 402 -
branches/0.10/lib/Doctrine/Import/Schema.php
r3415 r3795 184 184 'package' => null, 185 185 'inheritance' => array(), 186 'subclasses' => array(),187 186 'detect_relations' => false, 188 187 'generate_accessors' => false);