"Fixes #3681, cascade has no effect"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6112 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-12-03 00:43:11 +00:00
parent 1c8577ed34
commit 3a58f3cab6

View file

@ -1429,7 +1429,10 @@ class Model extends Overloadable {
foreach ($ids as $id) {
$this->_deleteLinks($id);
$this->_deleteDependent($id, $cascade);
if ($cascade) {
$this->_deleteDependent($id, $cascade);
}
}
$db =& ConnectionManager::getDataSource($this->useDbConfig);