Wrong naming case for eager associations #17138
Labels
pending-approval
Bug reports that have not been verified yet, or feature requests that have not been accepted yet
type: bug
Issue Creation Checklist
Bug Description
When we set relations between two models and child naming case is uppercase, then the eager loading doesn't create the proper name for the property since
7.0.0-alpha.36
.I tested in
7.0.0-alpha.35
and this issue wasn't there so it has been introduced since7.0.0-alpha.36
.That's database agnostic.
Reproducible Example
Let say we have a parent model
FOO
and a child modelBAR
.Then we configure relationship with
hasMany
andbelongsTo
Here is the link to the SSCCE for this issue: here
What do you expect to happen?
If we fetch the parent model with eager loading, we should see child instances under the
BARs
propertyExample: (child model is
ACV
) :What is actually happening?
If we fetch the parent model with eager loading, we can see child instances under the
bARs
propertyExample: (child model is
ACV
) :Environment
7.0.0-alpha.36
20.11.1
mysql
|Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64)
mysql2
|3.1.2
Would you be willing to resolve this issue by submitting a Pull Request?
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
The text was updated successfully, but these errors were encountered: