ZF-11810: Cascade delete does not work for customly deleted rows

Description

The cascadeDelete() method works only when the delete operation is performed over a Zend_Db_Table_Row. For instance it works successfully in the following case:


$table = new Application_Model_DbTable_Sample();
$table->find(12)->current()->delete();

but it does not work for:


$table = new Application_Model_DbTable_Sample();
$table->delete('id=?',12);

seems like a bug, right?

Comments

Attached patch which fixes this issue.

Fixed in trunk (1.12.0) r24957