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

Issue Type: Bug Created: 2011-10-09T18:18:51.000+0000 Last Updated: 2012-06-15T13:40:30.000+0000 Status: Resolved Fix version(s): - 1.12.0 (27/Aug/12)

Reporter: Evangelos Sariyanidi (evangelos) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Db_Table

  • FixForZF1.12
  • zf-caretaker-adamlundrigan

Related issues: - ZF-1103

Attachments: - ZF-11810.patch


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:

<pre class="highlight">
$table = new Application_Model_DbTable_Sample();

but it does not work for:

<pre class="highlight">
$table = new Application_Model_DbTable_Sample();

seems like a bug, right?


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

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.