Changeset 3676

Show
Ignore:
Timestamp:
01/29/08 23:57:14 (17 months ago)
Author:
guilhermeblanco
Message:

Merged changeset #3592 into 0.9 and 0.10 branches

Location:
branches
Files:
4 modified

Legend:

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

    r3419 r3676  
    6464        } 
    6565 
    66         if( ! $this->_options['updated']['disabled']) { 
     66        if( ! $this->_options['updated']['disabled'] && $this->_options['updated']['onInsert']) { 
    6767            $updatedName = $this->_options['updated']['name']; 
    6868            $event->getInvoker()->$updatedName = $this->getTimestamp('updated'); 
  • branches/0.10/lib/Doctrine/Template/Timestampable.php

    r3258 r3676  
    4949                                                    'format'  =>  'Y-m-d H:i:s', 
    5050                                                    'disabled' => false, 
     51                                                    'onInsert' => true, 
    5152                                                    'options' =>  array())); 
    5253     
  • branches/0.9/lib/Doctrine/Template/Listener/Timestampable.php

    r3253 r3676  
    6464        } 
    6565 
    66         if(!$this->_options['updated']['disabled']) { 
     66        if(!$this->_options['updated']['disabled'] && $this->_options['updated']['onInsert']) { 
    6767            $updatedName = $this->_options['updated']['name']; 
    6868            $event->getInvoker()->$updatedName = $this->getTimestamp('updated'); 
  • branches/0.9/lib/Doctrine/Template/Timestampable.php

    r3469 r3676  
    4949                                                    'format'  =>  'Y-m-d H:i:s', 
    5050                                                    'disabled' => false, 
     51                                                    'onInsert' => true, 
    5152                                                    'options' =>  array())); 
    5253