Changeset 4074

Show
Ignore:
Timestamp:
03/22/08 00:50:50 (16 months ago)
Author:
jwage
Message:

fixes #837

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Migration/Builder.php

    r3910 r4074  
    268268    public function generateMigrationClass($className, $options = array(), $up = null, $down = null, $return = false) 
    269269    { 
     270        $className = Doctrine_Inflector::urlize($className); 
     271        $className = str_replace('-', '_', $className); 
     272        $className = Doctrine_Inflector::classify($className); 
     273 
    270274        if ($return || ! $this->getMigrationsPath()) { 
    271275            return $this->buildMigrationClass($className, null, $options, $up, $down);