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

模型关联 字段类型decimal 无法被关联 #661

Open
szhai1969 opened this issue Jan 10, 2025 · 0 comments
Open

模型关联 字段类型decimal 无法被关联 #661

szhai1969 opened this issue Jan 10, 2025 · 0 comments

Comments

@szhai1969
Copy link

modelA ID decimal(20,0) "1081294107383791623" 参考值
modelB UID decimal(20,0) "1081294107383791623"

$this->hasMany(modelB::class,"UID","ID" )

查询无数据 ,不知道是字段名为大写导致的,还是 字段类型导致,打印的SQL 能正常查询出来数据,用关联无法匹配出来

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