Skip to content
Permalink
Browse files

Removed unnessecary call to array_merge() in Model::_deleteLinks(). F…

…ixes #2075 .
  • Loading branch information...
Thomas Ploch
Thomas Ploch committed Oct 7, 2011
1 parent c56797a commit d9cd69ac6e13773405af797815553080f344e774
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
@@ -2278,7 +2278,7 @@ protected function _deleteLinks($id) {
foreach ($this->hasAndBelongsToMany as $assoc => $data) {
list($plugin, $joinModel) = pluginSplit($data['with']);
$records = $this->{$joinModel}->find('all', array(
'conditions' => array_merge(array($this->{$joinModel}->escapeField($data['foreignKey']) => $id)),
'conditions' => array($this->{$joinModel}->escapeField($data['foreignKey']) => $id),
'fields' => $this->{$joinModel}->primaryKey,
'recursive' => -1,
'callbacks' => false

0 comments on commit d9cd69a

Please sign in to comment.
You can’t perform that action at this time.