Changeset 3839

Show
Ignore:
Timestamp:
02/19/08 19:21:31 (17 months ago)
Author:
jwage
Message:

Fixed bug introduced by fixing the conservative model loading in r3834

Location:
branches/0.10/lib/Doctrine
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Export.php

    r3791 r3839  
    10421042    { 
    10431043        if ($directory !== null) { 
    1044             $models = Doctrine::loadModels($directory); 
    1045         } else { 
    1046             $models = Doctrine::getLoadedModels(); 
    1047         } 
    1048          
     1044            Doctrine::loadModels($directory); 
     1045        } 
     1046 
     1047        $models = Doctrine::getLoadedModels(); 
     1048 
    10491049        $this->exportClasses($models); 
    10501050    } 
     
    12471247        if ($directory !== null) { 
    12481248            $models = Doctrine::loadModels($directory); 
    1249         } else { 
    1250             $models = Doctrine::getLoadedModels(); 
    1251         } 
    1252          
     1249        } 
     1250 
     1251        $models = Doctrine::getLoadedModels(); 
     1252 
    12531253        return $this->exportClassesSql($models); 
    12541254    } 
  • branches/0.10/lib/Doctrine/Export/Schema.php

    r3077 r3839  
    4646    { 
    4747        if ($directory) { 
    48             $loadedModels = Doctrine::loadModels($directory); 
    49         } else { 
    50             $loadedModels = Doctrine::getLoadedModels(); 
     48            Doctrine::loadModels($directory); 
    5149        } 
     50 
     51        $loadedModels = Doctrine::getLoadedModels(); 
    5252 
    5353        $array = array(); 
  • branches/0.10/lib/Doctrine/Migration/Builder.php

    r3258 r3839  
    156156    public function generateMigrationsFromModels($modelsPath = null) 
    157157    { 
    158         if ($modelsPath) { 
    159             $models = Doctrine::loadModels($modelsPath); 
    160         } else { 
    161             $models = Doctrine::getLoadedModels(); 
    162         } 
    163          
     158        if ($modelsPath !== null) { 
     159            Doctrine::loadModels($modelsPath); 
     160        } 
     161 
     162        $models = Doctrine::getLoadedModels(); 
     163 
    164164        $foreignKeys = array(); 
    165165