Changeset 4476
- Timestamp:
- 06/06/08 18:48:36 (13 months ago)
- Files:
-
- 1 modified
-
branches/0.11/lib/Doctrine/Template/Sluggable.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Template/Sluggable.php
r4439 r4476 48 48 'uniqueBy' => array(), 49 49 'uniqueIndex' => true, 50 'canUpdate' => false 50 'canUpdate' => false, 51 'indexName' => 'sluggable' 51 52 ); 52 53 … … 74 75 $indexFields = array($this->_options['name']); 75 76 $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')); 78 79 } 79 80