Changeset 4476

Show
Ignore:
Timestamp:
06/06/08 18:48:36 (13 months ago)
Author:
jwage
Message:

fixes #1105

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Template/Sluggable.php

    r4439 r4476  
    4848                                'uniqueBy'      =>  array(), 
    4949                                'uniqueIndex'   =>  true, 
    50                                 'canUpdate'     =>  false 
     50                                'canUpdate'     =>  false, 
     51                                'indexName'     =>  'sluggable' 
    5152    ); 
    5253 
     
    7475            $indexFields = array($this->_options['name']); 
    7576            $indexFields = array_merge($indexFields, $this->_options['uniqueBy']); 
    76             $this->index('sluggable', array('fields' => $indexFields, 
    77                                             'type' => 'unique')); 
     77            $this->index($this->_options['indexName'], array('fields' => $indexFields, 
     78                                                             'type' => 'unique')); 
    7879        } 
    7980