Skip to content

Commit

Permalink
maintain ModelAlias.field_name in conditions to avoid ambiguity error.
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad19 committed Aug 11, 2014
1 parent cf0d6e6 commit 58f2102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Behavior/SearchableBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ protected function _fillChunk ($Model, $offset, $limit, $id = null) {
}
} else {
if ($id) {
$params['conditions'][$Model->primaryKey] = $id;
$params['conditions'][$Model->alias . '.' . $Model->primaryKey] = $id;
} else {
$params['offset'] = $offset;
if (empty($params['limit'])) {
Expand Down

0 comments on commit 58f2102

Please sign in to comment.