[Solar-svn] Revision 2586

pmjones at solarphp.com pmjones at solarphp.com
Wed Jul 11 08:57:41 CDT 2007


Solar_Sql_Model: [CHG] Method _update() now auto-sets the 'updated' value whether or not the data key is empty.  Thanks Jeff Surgeson.


Modified: trunk/Solar/Sql/Model.php
===================================================================
--- trunk/Solar/Sql/Model.php	2007-07-10 21:01:59 UTC (rev 2585)
+++ trunk/Solar/Sql/Model.php	2007-07-11 13:57:41 UTC (rev 2586)
@@ -1803,10 +1803,9 @@
      */
     protected function _update()
     {
-        // auto-add an 'updated' value if there is an 'updated' column
-        // and its value is not already set.
+        // auto-add an 'updated' value if there is an 'updated' column.
         $key = $this->_updated_col;
-        if ($key && empty($this->_data[$key])) {
+        if ($key) {
             $this->_data[$key] = date('Y-m-d\\TH:i:s');
         }
         




More information about the Solar-svn mailing list