Skip to content
Permalink
Browse files

adding the model alias so that there are no issues when the find has …

…a join on it
  • Loading branch information...
dogmatic69 committed Feb 16, 2012
1 parent 5c792aa commit 3246cf7c1ee995821946704eda5889741550d5cd
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
@@ -1945,7 +1945,7 @@ protected function _prepareUpdateFields($data) {
return array();
}
$old = $this->find('first', array(
'conditions' => array($this->primaryKey => $this->id),
'conditions' => array($this->alias . '.' . $this->primaryKey => $this->id),
'fields' => array_values($included),
'recursive' => -1
));

0 comments on commit 3246cf7

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