mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
adding the model alias so that there are no issues when the find has a join on it
This commit is contained in:
parent
5c792aa831
commit
3246cf7c1e
1 changed files with 1 additions and 1 deletions
|
@ -1945,7 +1945,7 @@ class Model extends Object implements CakeEventListener {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
$old = $this->find('first', array(
|
$old = $this->find('first', array(
|
||||||
'conditions' => array($this->primaryKey => $this->id),
|
'conditions' => array($this->alias . '.' . $this->primaryKey => $this->id),
|
||||||
'fields' => array_values($included),
|
'fields' => array_values($included),
|
||||||
'recursive' => -1
|
'recursive' => -1
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Reference in a new issue