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
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(); $table->find(12)->current()->delete();
but it does not work for:
<pre class="highlight"> $table = new Application_Model_DbTable_Sample(); $table->delete('id=?',12);
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.