ZF-2113: $where not properly initialized in _cascadeDelete()
Description
The variable $where is not properly initialized in the reference map loop in _cascadeDelete():
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.
Comments
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 (yoshida@zend.co.jp) 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.