mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正Model类的字段类型获取
This commit is contained in:
@@ -955,7 +955,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
*/
|
||||
public function __set($name, $value)
|
||||
{
|
||||
if (is_null($this->fieldType)) {
|
||||
if (empty($this->fieldType)) {
|
||||
// 获取字段类型信息并缓存
|
||||
$this->fieldType = $this->db()->getTableInfo('', 'type');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user