Issue Type: Bug Created: 2007-10-30T10:40:11.000+0000 Last Updated: 2012-03-28T02:11:51.000+0000 Status: Resolved Fix version(s): - 1.6.2 (13/Oct/08)
Reporter: Jan Sorgalla (jsorgalla) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Db_Table
Related issues: Attachments:
The variable $where is not properly initialized in the reference map loop in _cascadeDelete():
<pre class="highlight"> should be
case self::CASCADE: $where = array();```
Apart from the fact that the variable isnt initialized correctly itself, the where clauses are just added to the $where stack for each reference loop.
Posted by Jan Sorgalla (jsorgalla) on 2008-03-13T05:40:31.000+0000
Is there any reason why this bug isn't fixed so far (its still unfixed in 1.5.0RC3)? This makes working with references impossible...
Posted by Wil Sinclair (wil) on 2008-03-25T20:43:51.000+0000
Please categorize/fix as needed.
Posted by Wil Sinclair (wil) on 2008-03-25T22:02:50.000+0000
Resetting 'fix version priority' and 'fix version' to be re-evaluated for next release.
Posted by Darby Felton (darby) on 2008-04-02T09:42:29.000+0000
Must Have for Next Mini Release
Posted by Darby Felton (darby) on 2008-04-02T09:45:39.000+0000
[~jsorgalla], if you were to submit a CLA, you could commit fixes like these yourself and increase the impact of your contributions to ZF! Of course, thank you for the report! :)
Posted by old of Satoru Yoshida (email@example.com) on 2008-08-25T02:43:32.000+0000
Solved in SVN r11042. I fix not only _cascadeDelete function but also _cascadeUpdate function in /Zend/Db/Table/Abstract.php .
Because _cascadeUpdate function has also same problem as _cascadeDelete function , I think.
Posted by Matthew Weier O'Phinney (matthew) on 2008-08-25T05:50:20.000+0000
Please merge this to the 1.6 release branch.
Have you found an issue?
See the Overview section for more details.