Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 9b290a8

Browse files
committed
Fixes #15 - Zend_Db_Table_Abstract::delete does not delete from dependent table
1 parent b61f269 commit 9b290a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/Zend/Db/Table/Abstract.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,9 @@ public function delete($where)
11911191
*/
11921192
foreach ($depTables as $tableClass) {
11931193
$t = self::getTableFromString($tableClass, $this);
1194-
$t->_cascadeDelete($tableClass, $row->getPrimaryKey());
1194+
$t->_cascadeDelete(
1195+
get_class($this), $row->getPrimaryKey()
1196+
);
11951197
}
11961198
}
11971199
}

0 commit comments

Comments
 (0)