Changeset 4593

Show
Ignore:
Timestamp:
06/29/08 03:24:50 (12 months ago)
Author:
jwage
Message:

Fixing issue where parent::setUp() is called for class_table inheritance

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Import/Builder.php

    r4591 r4593  
    505505            // If the body of the function has contents and we are using inheritance 
    506506            // then we need call the parent::setUp() before the body of the function 
    507             if ($code && isset($definition['inheritance']['type'])) { 
     507            // Class table inheritance is the only one we shouldn't call parent::setUp() for 
     508            if ($code && isset($definition['inheritance']['type']) && $definition['inheritance']['type'] != 'class_table') { 
    508509                $code = "parent::setUp();" . PHP_EOL . '    ' . $code; 
    509510            }