Changeset 4368

Show
Ignore:
Timestamp:
05/17/08 01:33:43 (8 months ago)
Author:
jwage
Message:

fixes #1030

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/I18n.php

    r4252 r4368  
    4040                            'pluginTable'   => false, 
    4141                            'children'      => array(), 
     42                            'type'          => 'string', 
     43                            'length'        => 2, 
     44                            'options'       => array() 
    4245                            ); 
    4346 
     
    8487        $this->hasColumns($columns); 
    8588 
    86         $this->hasColumn('lang', 'string', 2, array('fixed'   => true, 
    87                                                     'primary' => true)); 
    88                                                      
     89        $options = $this->_options['options']; 
     90        $options['fixed'] = true; 
     91        $options['primary'] = true; 
     92 
     93        $this->hasColumn('lang', $this->_options['type'], $this->_options['length'], $options); 
     94 
    8995        $this->bindQueryParts(array('indexBy' => 'lang')); 
    9096    }