mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing minor typo in model.php. Closes #6176
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8080 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b0a0f2ad30
commit
62ea98bdb2
1 changed files with 1 additions and 1 deletions
|
@ -1682,7 +1682,7 @@ class Model extends Overloadable {
|
|||
$this->id = $id;
|
||||
|
||||
if (!empty($this->belongsTo)) {
|
||||
$keys = $this->find('first', array('fields', $this->__collectForeignKeys()));
|
||||
$keys = $this->find('first', array('fields' => $this->__collectForeignKeys()));
|
||||
}
|
||||
|
||||
if ($db->delete($this)) {
|
||||
|
|
Loading…
Reference in a new issue