Commit 52169a41 authored by jwage's avatar jwage

fixes #648

parent 7a2fec88
......@@ -63,7 +63,7 @@ class Doctrine_Template_Listener_Timestampable extends Doctrine_Record_Listener
$event->getInvoker()->$createdName = $this->getTimestamp('created');
}
if( ! $this->_options['updated']['disabled']) {
if( ! $this->_options['updated']['disabled'] && $this->_options['updated']['onInsert']) {
$updatedName = $this->_options['updated']['name'];
$event->getInvoker()->$updatedName = $this->getTimestamp('updated');
}
......
......@@ -50,6 +50,7 @@ class Doctrine_Template_Timestampable extends Doctrine_Template
'format' => 'Y-m-d H:i:s',
'disabled' => false,
'expression' => false,
'onInsert' => true,
'options' => array()));
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment