check file exists
[Pman.Core] / RooPostTrait.php
index a2e1d27..456aa7a 100644 (file)
@@ -170,7 +170,8 @@ trait Pman_Core_RooPostTrait {
         
         $affects  = array();
         
-        $all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$x->_database];
+        $all_links = $x->databaseLinks();
+        
         foreach($all_links as $tbl => $links) {
             foreach($links as $col => $totbl_col) {
                 $to = explode(':', $totbl_col);