Changeset 6842

Show
Ignore:
Timestamp:
12/02/09 12:08:00 (8 months ago)
Author:
jwage
Message:

[1.2] Fixes issue with $length in migrations addColumn

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.2/lib/Doctrine/Migration/Base.php

    r6711 r6842  
    378378    { 
    379379        $options = get_defined_vars(); 
    380         $options['options']['length'] = $length; 
     380        if ( ! isset($options['options']['length'])) { 
     381            $options['options']['length'] = $length; 
     382        } 
    381383        $options = array_merge($options, $options['options']); 
    382384        unset($options['options']);