Open KMJ-007 opened 3 months ago
The reason is that upsert
does only work for belongsTo
and hasOne
relations. (docs).
It should be possible to add support for hasMany
as in your case.
This is a tough one, many things to change, I hope it's no a big deal for you to workaround this by upserting an auth provider in a separate query.
I'll add support for upsert for hasMany
and hasAndBelongsToMany
, but I'd like to postpone it to be done after other bugfixes and changes.
Description
The
upsert
method is not functioning correctly when trying to upsert a user with associated auth provider data. The method is not visible or not working as expected.Steps to Reproduce
User Table
Auth Provider Table
upsert
method in a service function:Expected Behavior
The
upsert
method should be available and work correctly, allowing us to upsert a user with associated auth provider data.Actual Behavior
The
upsert
method is not showing up or not working as expected.Environment