mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
改进model类的_parseOptions方法
取消删除不存在字段的查询
This commit is contained in:
@@ -562,8 +562,6 @@ class Model
|
|||||||
if (is_scalar($val) && empty($options['bind'][':' . $key])) {
|
if (is_scalar($val) && empty($options['bind'][':' . $key])) {
|
||||||
$this->_parseType($options['where'], $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]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user