DataObjects/Events.php
authorAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 06:45:20 +0000 (14:45 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 06:45:20 +0000 (14:45 +0800)
DataObjects/Events.php

index 554853d..c96382b 100644 (file)
@@ -42,6 +42,9 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
             // grouped..
             DB_DataObject::Debuglevel(1);
             $this->groupBy('on_id');
+            $this->selectAdd('
+                (SELECT count(id) FROM core_event_audit WHERE event_id = Events.id) as changed
+                ');
         }
             
     }