Changeset 3680

Show
Ignore:
Timestamp:
01/30/08 00:51:53 (17 months ago)
Author:
guilhermeblanco
Message:

Merged changeset #3579 into 0.9 and 0.10 branches. This change does not break any test case, but it changes the behavior of Sluggable in both branches. TODO is to test this change in real life.

Location:
branches
Files:
2 modified

Legend:

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

    r3440 r3680  
    4040     * @var string 
    4141     */ 
    42     protected $_options = array('name'    =>  'slug', 
    43                                 'type'    =>  'clob', 
    44                                 'length'  =>  null, 
    45                                 'options' =>  array(), 
    46                                 'fields'  =>  array()); 
     42    protected $_options = array(); 
    4743 
    4844    /** 
     
    5450    public function __construct(array $options) 
    5551    { 
    56         $this->_options = Doctrine_Lib::arrayDeepMerge($this->_options, $options); 
     52        $this->_options = $options; 
    5753    } 
    5854 
  • branches/0.9/lib/Doctrine/Template/Listener/Sluggable.php

    r3137 r3680  
    4040     * @var string 
    4141     */ 
    42     protected $_options = array('name'    =>  'slug', 
    43                                 'type'    =>  'clob', 
    44                                 'length'  =>  null, 
    45                                 'options' =>  array(), 
    46                                 'fields'  =>  array()); 
     42    protected $_options = array(); 
    4743     
    4844    /** 
     
    5450    public function __construct(array $options) 
    5551    { 
    56         $this->_options = array_merge($options, $this->_options); 
     52        $this->_options = $options; 
    5753    } 
    5854