projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff8f1c0
)
DataObjects/Events.php
author
Alan Knowles
<alan@roojs.com>
Wed, 28 Sep 2011 06:45:20 +0000
(14:45 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 28 Sep 2011 06:45:20 +0000
(14:45 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
554853d
..
c96382b
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-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
+ ');
}
}