Changeset 5318

Show
Ignore:
Timestamp:
12/19/08 20:44:54 (7 months ago)
Author:
jwage
Message:

[1.0, 1.1] fixing custom package paths for schema files

Location:
branches
Files:
4 modified

Legend:

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

    r5145 r5318  
    10371037        // If is the package class then we need to make the path to the complete package 
    10381038        else if (isset($definition['is_package_class']) && $definition['is_package_class']) { 
    1039             $writePath = $packagesPath . DIRECTORY_SEPARATOR . $definition['package_path']; 
     1039            if (isset($definition['package_custom_path'])) { 
     1040              $writePath = $definition['package_custom_path']; 
     1041            } else { 
     1042              $writePath = $packagesPath . DIRECTORY_SEPARATOR . $definition['package_path']; 
     1043            } 
    10401044 
    10411045            if ($this->generateTableClasses()) { 
  • branches/1.0/lib/Doctrine/Import/Schema.php

    r5234 r5318  
    8484                                                          'options', 
    8585                                                          'package', 
     86                                                          'package_custom_path', 
    8687                                                          'inheritance', 
    8788                                                          'detect_relations', 
     
    314315                            'options', 
    315316                            'package', 
     317                            'package_custom_path', 
    316318                            'inheritance', 
    317319                            'detect_relations'); 
  • branches/1.1/lib/Doctrine/Import/Builder.php

    r5270 r5318  
    11491149        // If is the package class then we need to make the path to the complete package 
    11501150        else if (isset($definition['is_package_class']) && $definition['is_package_class']) { 
    1151             $writePath = $packagesPath . DIRECTORY_SEPARATOR . $definition['package_path']; 
     1151            if (isset($definition['package_custom_path'])) { 
     1152              $writePath = $definition['package_custom_path']; 
     1153            } else { 
     1154              $writePath = $packagesPath . DIRECTORY_SEPARATOR . $definition['package_path']; 
     1155            } 
    11521156 
    11531157            if ($this->generateTableClasses()) { 
  • branches/1.1/lib/Doctrine/Import/Schema.php

    r5234 r5318  
    8484                                                          'options', 
    8585                                                          'package', 
     86                                                          'package_custom_path', 
    8687                                                          'inheritance', 
    8788                                                          'detect_relations', 
     
    288289                            'options', 
    289290                            'package', 
     291                            'package_custom_path', 
    290292                            'inheritance', 
    291293                            'detect_relations');