-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
After updating an existing model in laravel to make use of ApiWrapper, I'm unable to load any belongsTo relationships from the model object that gets created. Trying to access them causes the following exception:
TypeError: Cristal\ApiWrapper\Relations\BelongsTo::__construct(): Argument #2 ($related) must be of type Cristal\ApiWrapper\Model, App\Models\User given
Is it possible to have a bridged model belong to an existing Eloquent model and I'm just missing something configuration-wise?
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation