Optionalparent: unknownReadonlycodeUnique error code for programmatic handling
Optional ReadonlyparentOriginal error that caused this error
Optional ReadonlysqlSQL query that caused the error
Optional ReadonlymetadataAdditional error properties
ReadonlymodelThe model the include was declared on
ReadonlyassociationThe alias the association would have been attached to
Optional ReadonlyassociationThe association type, when one was resolved
Error raised when eager-loading an association (
include) fails.Previously these failures were caught and reported as an empty result, which made a typo'd alias, a missing foreign key column, an unresolvable through model, and a genuinely childless parent indistinguishable. This surfaces the underlying cause while naming the association that could not be loaded.