Closed saade closed 8 months ago
The plugin only supports BelongsTo
and HasMany
at the moment.
Thanks @saade !
@CodeWithDennis this PR is broking my applications.
It sets the relation to null
when I set ->dehydrated(true)
on the field it works just fine
I see why, the component is not handling the BelongsTo relationship inside saveRelationshipsUsing
i thought it was. Gonna submit a fix asap.
When using relationships, fields must not be dehydrated, otherwise, (when strict) a
MassAssignmentException
is thrown.As far i can see, this plugin only supports relationships, right? If yes, its fine as is. If not (supports arrays too) we need to add this fix only inside
relationship()
method.Thanks!