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
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