DataObjects/Core_enum.php
authorEdward <edward@roojs.com>
Thu, 4 Jun 2015 08:36:49 +0000 (16:36 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Jun 2015 08:36:49 +0000 (16:36 +0800)
DataObjects/Core_enum.php

index 6df7df4..fe7c3df 100644 (file)
@@ -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;
+        
     }