Skip to content

Commit 6ba2f97

Browse files
committed
Add with associated array when using Find with conditions
1 parent 5cfbe06 commit 6ba2f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ protected function _findByCondition($condition=null)
13631363
/* Associated Array */
13641364
foreach ($condition as $field => $value) {
13651365

1366-
$query->where($field, $value);
1366+
(is_array($value)) ? $query->where_in($field, $value) : $query->where($field, $value);
13671367
}
13681368
}
13691369
}

0 commit comments

Comments
 (0)