mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Prefix fields with model alias
This commit is contained in:
parent
63769ae4a6
commit
a1286e9e7d
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ class TreeBehavior extends ModelBehavior {
|
|||
$depths[$node[$Model->alias][$primaryKey]] = $depth;
|
||||
|
||||
$Model->updateAll(
|
||||
array($settings['level'] => $depth),
|
||||
array($primaryKey => $node[$Model->alias][$primaryKey])
|
||||
array($Model->escapeField($settings['level']) => $depth),
|
||||
array($Model->escapeField($primaryKey) => $node[$Model->alias][$primaryKey])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue