Changeset 4471

Show
Ignore:
Timestamp:
06/06/08 15:15:40 (13 months ago)
Author:
jwage
Message:

fixes #1088

Files:
1 modified

Legend:

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

    r4411 r4471  
    904904            // If we have a package then we need to make this extend the package definition and not the base definition 
    905905            // The package definition will then extends the base definition 
    906             $topLevel['inheritance']['extends'] = (isset($topLevel['package']) && $topLevel['package']) ? $this->_packagesPrefix . $topLevel['className']:'Base' . $topLevel['className']; 
     906            $topLevel['inheritance']['extends'] = (isset($topLevel['package']) && $topLevel['package']) ? $this->_packagesPrefix . $topLevel['className']:$this->_baseClassPrefix . $topLevel['className']; 
    907907            $topLevel['no_definition'] = true; 
    908908            $topLevel['generate_once'] = true; 
     
    915915                $packageLevel = $definition; 
    916916                $packageLevel['className'] = $topLevel['inheritance']['extends']; 
    917                 $packageLevel['inheritance']['extends'] = 'Base' . $topLevel['className']; 
     917                $packageLevel['inheritance']['extends'] = $this->_baseClassPrefix . $topLevel['className']; 
    918918                $packageLevel['no_definition'] = true; 
    919919                $packageLevel['abstract'] = true; 
     
    934934 
    935935            $baseClass = $definition; 
    936             $baseClass['className'] = 'Base' . $baseClass['className']; 
     936            $baseClass['className'] = $this->_baseClassPrefix . $baseClass['className']; 
    937937            $baseClass['abstract'] = true; 
    938938            $baseClass['override_parent'] = false;