mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Merge pull request #233 from tPl0ch/2.0-model
Removed unnessecary call to array_merge() in Model::_deleteLinks().
This commit is contained in:
commit
a8af97858c
1 changed files with 1 additions and 1 deletions
|
@ -2278,7 +2278,7 @@ class Model extends Object {
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue