-
Notifications
You must be signed in to change notification settings - Fork 175
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
模型$append问题 #487
Comments
append比hidden优先的 不管是内置设置还是外部方法调用 |
好吧, 还有个问题, 模型内$append属性 设置了一个自定义的字段方法(实际数据库中没有这个字段),那么外部是应用不上的,只能外部调用append方法才行,这个算是bug了吧? |
有代码示例么? |
模型内部设置了 $append(有自定义获取器方法),那么外部使用hidden方法 会导致无效。
我觉得应该是以外部使用append方法为主,不使用该方法就默认用内部设置的$append
关联社区贴:
https://q.thinkphp.cn/post/1686
The text was updated successfully, but these errors were encountered: