projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cc0fd7
)
DataObjects/Events.php
author
Edward
<edward@roojs.com>
Tue, 14 Jul 2015 07:31:05 +0000
(15:31 +0800)
committer
Edward
<edward@roojs.com>
Tue, 14 Jul 2015 07:31:05 +0000
(15:31 +0800)
DataObjects/Events.php
patch
|
blob
|
history
diff --git
a/DataObjects/Events.php
b/DataObjects/Events.php
index
36f2175
..
cf0faf8
100644
(file)
--- a/
DataObjects/Events.php
+++ b/
DataObjects/Events.php
@@
-634,6
+634,23
@@
class Pman_Core_DataObjects_Events extends DB_DataObject
$table->setFrom($d);
+ $affects = array();
+
+ $all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$this->_database];
+
+ foreach($all_links as $tbl => $links) {
+ foreach($links as $col => $totbl_col) {
+ $to = explode(':', $totbl_col);
+ if ($to[0] != $this->tableName()) {
+ continue;
+ }
+
+ $affects[$tbl .'.' . $col] = true;
+ }
+ }
+
+ print_R($affects);exit;
+
}
print_R($log);exit;