We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Eloquent relation return null instead of model when the id key in the database table is 0 (for non auto-increment table), it works fine in 5.2/5.3.
Use a relation like belongTo in a model, submodel have key like id 0,1,2 if key = 0 the relation return null instead of returning the submodel .
The text was updated successfully, but these errors were encountered:
#17668
Sorry, something went wrong.
Fixed in #17668
No branches or pull requests
Description:
Eloquent relation return null instead of model when the id key in the database table is 0 (for non auto-increment table), it works fine in 5.2/5.3.
Steps To Reproduce:
Use a relation like belongTo in a model, submodel have key like id 0,1,2 if key = 0 the relation return null instead of returning the submodel .
The text was updated successfully, but these errors were encountered: