DataObjects/Companies.php
authorEdward <edward@roojs.com>
Wed, 22 May 2013 11:59:31 +0000 (19:59 +0800)
committerEdward <edward@roojs.com>
Wed, 22 May 2013 11:59:31 +0000 (19:59 +0800)
DataObjects/Companies.php

index 51f85c4..723ff0f 100644 (file)
@@ -325,7 +325,9 @@ class Pman_Core_DataObjects_Companies extends DB_DataObject
         $companies->setFrom(array(
             'name' => $name,
             'comptype' => $type,
-            'background_color' => ''
+            'background_color' => '',
+            'created_dt' => 'NOW()',
+            'updated_dt' => 'NOW()'
         ));
         
         $companies->insert();