-
Notifications
You must be signed in to change notification settings - Fork 789
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 fill 优化 #297
Labels
Comments
这个其实没啥问题,Entity中的私有变量已经是驼峰命名了,所有只需要用ucfirst就可以了 |
这里涉及到一个问题是fill方法是提供以属性名传参还是字段名传参的问题,我觉得大家可以探讨一下 |
如果全传驼峰的进去肯定没问题得,如果传递原字段就有问题了! |
@hujinhuaP 这里我越来越觉得,fill应该也是小写比较好。。 驼峰命名只让他活在toArray()里吧。 |
@limingxinleo 如果驼峰只活在 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ucfirst建议优化和生成实体类规则一致。字段很多下划线的
The text was updated successfully, but these errors were encountered: