Replies: 1 comment 2 replies
-
@plantjes have you ever found a solution for this ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to make the select field compatible with hasOneTrough?
I have this field in my User Resource, but only the active (chosen) value is visible and not all other schools.
In my User model I have this:
If I save it like this (with only one visible active option) I get this error:
Call to undefined method Illuminate\Database\Eloquent\Relations\HasOneThrough::associate()
I know that it works with the relationship manager, but that is more designed for BelongToMany relationships.
And I don't want a belongsTo model because my users are also admin or other types of users and that is why i'm using hasOneThrough with a pivot table. So I can keep my users table clean without a school_id or a school_admin_id etc.
Beta Was this translation helpful? Give feedback.
All reactions