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

模型自动转驼峰功能异常 #506

Closed
yinbug opened this issue Oct 26, 2023 · 0 comments
Closed

模型自动转驼峰功能异常 #506

yinbug opened this issue Oct 26, 2023 · 0 comments

Comments

@yinbug
Copy link

yinbug commented Oct 26, 2023

开启模型自动把字段转驼峰功能的时候会不兼容某些用法
protected $convertNameToCamel = true;

当手动把field 中字段定义别名是驼峰规则时,输出数据时字段一直是null
示例:
->field('name as categoryName') 结果该字段一直为null

->field('name as category_name') 时正常

@yinbug yinbug closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant