Closed Upperfoot closed 5 years ago
@Upperfoot Thanks to contribute with package. Could you create test/s to cover this case of use?
@maguilar92 I could, all I would need to break this entire package is add a $with declaration pointing to a BelongsTo relation on any of the test models.
Because of line 203 asking for just the ID (Key Name) column (Line 208) it will cause eager loads to fail if a relationship that depends on a column that is missing completely from that model.
An example pseudo model structure
If type_id is missing from the model, eager loading will fail.
What I am doing is disabling eager loading for this particular query as it's not needed, via setEagerLoads([]);