Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

若Model没有设置 get set 方法。 save() 返回的是true #1432

Open
cgjcgs opened this issue May 23, 2021 · 0 comments
Open

若Model没有设置 get set 方法。 save() 返回的是true #1432

cgjcgs opened this issue May 23, 2021 · 0 comments
Assignees
Labels
swoft: db Issues for swoft db component

Comments

@cgjcgs
Copy link

cgjcgs commented May 23, 2021

swoft 2.0.11
Model.php 约 620行
$attributes = $this->getArrayableAttributes();
查出来是空。 是否应该判断一下
if(!$attributes){
return false;
}

@github-actions github-actions bot added the swoft: db Issues for swoft db component label May 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swoft: db Issues for swoft db component
Projects
None yet
Development

No branches or pull requests

2 participants