修正Query类的find方法一处警告错误

This commit is contained in:
thinkphp
2016-05-09 10:01:00 +08:00
parent 6e9a18955b
commit 6723257a4b

View File

@@ -1409,7 +1409,7 @@ class Query
if (!empty($options['model'])) {
// 返回模型对象
$data = new $options['model']($data);
$data->isUpdate(true, $options['where']['AND']);
$data->isUpdate(true, isset($options['where']['AND']) ? $options['where']['AND'] : null);
// 关联查询
if (!empty($options['relation'])) {
$data->relationQuery($options['relation']);