Explorar o código

ZF-11053
- Remove part of commit that was accidentally included


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23768 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph %!s(int64=15) %!d(string=hai) anos
pai
achega
abdfa0f84e
Modificáronse 1 ficheiros con 9 adicións e 14 borrados
  1. 9 14
      library/Zend/Db/Table/Row/Abstract.php

+ 9 - 14
library/Zend/Db/Table/Row/Abstract.php

@@ -540,7 +540,15 @@ abstract class Zend_Db_Table_Row_Abstract implements ArrayAccess, IteratorAggreg
          * Do this only if primary key value(s) were changed.
          */
         if (count($pkDiffData) > 0) {
-            $this->_doUpdateCascade(); // broken out for overriding
+            $depTables = $this->_getTable()->getDependentTables();
+            if (!empty($depTables)) {
+                $pkNew = $this->_getPrimaryKey(true);
+                $pkOld = $this->_getPrimaryKey(false);
+                foreach ($depTables as $tableClass) {
+                    $t = $this->_getTableFromString($tableClass);
+                    $t->_cascadeUpdate($this->getTableClass(), $pkOld, $pkNew);
+                }
+            }
         }
 
         /**
@@ -578,19 +586,6 @@ abstract class Zend_Db_Table_Row_Abstract implements ArrayAccess, IteratorAggreg
 
         return $primaryKey;
     }
-    
-    protected function _doUpdateCascade()
-    {
-        $depTables = $this->_getTable()->getDependentTables();
-        if (!empty($depTables)) {
-            $pkNew = $this->_getPrimaryKey(true);
-            $pkOld = $this->_getPrimaryKey(false);
-            foreach ($depTables as $tableClass) {
-                $t = $this->_getTableFromString($tableClass);
-                $t->_cascadeUpdate($this->getTableClass(), $pkOld, $pkNew);
-            }
-        }
-    }
 
     /**
      * Deletes existing rows.