mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进Db/Driver类 对闭包查询条件的支持 fetchMode方法更改为fetchPdo方法 如果传入true 则表示查询结果返回PDOStatment对象
This commit is contained in:
@@ -71,6 +71,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
{
|
||||
if (empty($data)) {
|
||||
$this->isUpdate = false;
|
||||
} elseif (is_object($data)) {
|
||||
$this->data = get_object_vars($data);
|
||||
} else {
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user