DataObjects/Core_event_audit.php
[Pman.Core] / DataObjects / Core_watch.php
index 12d7e9b..5842087 100644 (file)
@@ -20,11 +20,12 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
     /* the code below is auto generated do not remove the above tag */
 
     public $__table = 'core_watch';                      // table name
-    public $ontable;                         // string(128)  not_null primary_key
-    public $onid;                            // int(11)  not_null primary_key
-    public $person_id;                         // int(11)  not_null primary_key
-    public $event;                           // string(128)  not_null primary_key
-    public $medium;                          // string(128)  not_null primary_key
+    public $id;                              // int(11)  not_null primary_key auto_increment
+    public $ontable;                         // string(128)  not_null
+    public $onid;                            // int(11)  not_null
+    public $person_id;                       // int(11)  not_null
+    public $event;                           // string(128)  not_null
+    public $medium;                          // string(128)  not_null
     public $active;                          // int(11)  not_null
 
     
@@ -34,7 +35,7 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
     
     function ensureNotify(  $ontable, $onid, $person_id, $whereAdd)
     {
-        DB_DAtaObject::debugLevel(1);
+        //DB_DAtaObject::debugLevel(1);
         $w = DB_DataObject::factory('core_watch');
         $w->person_id = $person_id;
         if (empty($w->person_id)) {
@@ -80,7 +81,7 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
                 // we have a item in the queue for that waiting to be sent..
                 continue;
             }
-            $n->act_when = date("Y-m-d H:i:s");
+            $n->act_start( date("Y-m-d H:i:s") );
             $n->insert();