Changeset 4027

Show
Ignore:
Timestamp:
03/18/08 21:29:59 (16 months ago)
Author:
jwage
Message:

Fixes issue where default => 0 is not included in the column definition options.

Files:
1 modified

Legend:

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

    r4000 r4027  
    485485            $unset = array('name', 'type', 'length'); 
    486486            foreach ($options as $key => $value) { 
    487                 if (in_array($key, $unset) || empty($value)) { 
     487                // Remove column elements which are specified above or are null 
     488                if (in_array($key, $unset) || is_null($value)) { 
    488489                    unset($options[$key]); 
    489490                }