1
0
mirror of synced 2024-12-13 06:46:03 +03:00
This commit is contained in:
jwage 2008-01-23 08:22:42 +00:00
parent 7a2fec88ed
commit 52169a4197
2 changed files with 2 additions and 1 deletions

View File

@ -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');
}

View File

@ -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()));
/**