topclaudy / compoships

Multi-columns relationships for Laravel's Eloquent ORM
MIT License
1.12k stars 130 forks source link

Not able to eager load a has many relation #105

Open shivasapra opened 3 years ago

shivasapra commented 3 years ago

I defined a hasMany relationship on Model A to Model B. And also defined the inverse relation i.e belongsTo From Model B to Model A. both relationships giving correct result as expected but i am not able to eager load the relationships. while eager loading hasMany relationship i.e from A to B it is giving error actually it is trying to map with primary key and while eagerloading belongsTo relationship i.e from Model B To Model A it is giving null

yurii-github commented 3 years ago

can you please check your case on master branch? There were added some fixes recently, maybe your case was fixed

regards