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
Posted by Adam Lundrigan (adamlundrigan) on 2012-06-05T01:35:30.000+0000
Attached patch which fixes this issue.
Posted by Adam Lundrigan (adamlundrigan) on 2012-06-15T13:40:30.000+0000
Fixed in trunk (1.12.0) r24957