Permalink
Browse files

adding back PHP4 compatibility, accidentally removed in previous commit

  • Loading branch information...
1 parent 6b1fe87 commit 29618fc0fc9d8a480e7a520870433ffd9eed8b1a @ceeram ceeram committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/model.php
@@ -1868,7 +1868,7 @@ function _deleteDependent($id, $cascade) {
foreach (array_merge($this->hasMany, $this->hasOne) as $assoc => $data) {
if ($data['dependent'] === true) {
- $model = $this->{$assoc};
+ $model =& $this->{$assoc};
if ($data['foreignKey'] === false && $data['conditions'] && in_array($this->name, $model->getAssociated('belongsTo'))) {
$model->recursive = 0;
$conditions = array($this->escapeField(null, $this->name) => $id);

0 comments on commit 29618fc

Please sign in to comment.