改进model类的_parseOptions方法

取消删除不存在字段的查询
This commit is contained in:
thinkphp
2015-11-30 17:09:20 +08:00
parent 95f1cd4b61
commit 2375e257b3

View File

@@ -562,8 +562,6 @@ class Model
if (is_scalar($val) && empty($options['bind'][':' . $key])) {
$this->_parseType($options['where'], $key);
}
} elseif ('_' != substr($key, 0, 1) && false === strpos($key, '.') && false === strpos($key, '(') && false === strpos($key, '|') && false === strpos($key, '&')) {
unset($options['where'][$key]);
}
}
}