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

模型使用suffix设置后缀时,后缀为0会设置无效 #651

Open
pigluck opened this issue Nov 22, 2024 · 1 comment
Open

模型使用suffix设置后缀时,后缀为0会设置无效 #651

pigluck opened this issue Nov 22, 2024 · 1 comment

Comments

@pigluck
Copy link

pigluck commented Nov 22, 2024

模型使用suffix方法设置表后缀时,如果后缀为0,会设置失败。
getSuffix方法获取表后缀时,会把0当空值处理

public function getSuffix(): string
{
return $this->suffix ?: '';
}

@liu21st
Copy link
Member

liu21st commented Nov 22, 2024

后缀规范尽量使用 _0 这种建议

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

2 participants