From 99b0396acfeb019aa67319ce3abf4e90dacd5455 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 4 Jun 2015 16:36:49 +0800 Subject: [PATCH] DataObjects/Core_enum.php --- DataObjects/Core_enum.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DataObjects/Core_enum.php b/DataObjects/Core_enum.php index 6df7df46..fe7c3df4 100644 --- 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; + } -- 2.39.2