projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0567f3a
)
DataObjects/Core_enum.php
author
Edward
<edward@roojs.com>
Thu, 4 Jun 2015 08:36:49 +0000
(16:36 +0800)
committer
Edward
<edward@roojs.com>
Thu, 4 Jun 2015 08:36:49 +0000
(16:36 +0800)
DataObjects/Core_enum.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_enum.php
b/DataObjects/Core_enum.php
index
6df7df4
..
fe7c3df
100644
(file)
--- a/
DataObjects/Core_enum.php
+++ b/
DataObjects/Core_enum.php
@@
-345,17
+345,19
@@
class Pman_Core_DataObjects_Core_enum extends DB_DataObject
$affects = array();
$all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$this->_database];
- print_R($all_links);exit;
+
foreach($all_links as $tbl => $links) {
foreach($links as $col => $totbl_col) {
$to = explode(':', $totbl_col);
- if ($to[0] != $
x
->tableName()) {
+ if ($to[0] != $
this
->tableName()) {
continue;
}
$affects[$tbl .'.' . $col] = true;
}
}
+ print_R($affects);exit;
+
}