Open potasium opened 2 years ago
Same issue here. When I use a varchar identifier in both tables (for example: "ABC-12345") eager loading doens't work. When I remove the relationship from eager loading, accessing the model through the relationship does work doh. I tried changing the identiefier to an integer and this made eager loading possible again.
Columns are varchar and foreign key - local key can be upper case- lower case. In this situation; When using $model1->has('model2') it is working but eager loading returns null.