Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in sorting many to many relations #11

Open
AbolfazlAkhtari opened this issue May 18, 2022 · 0 comments
Open

Problem in sorting many to many relations #11

AbolfazlAkhtari opened this issue May 18, 2022 · 0 comments

Comments

@AbolfazlAkhtari
Copy link

AbolfazlAkhtari commented May 18, 2022

Hi. I get this error when trying to sort a column in my table which is loading from a many to many relationship.

Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsToMany::getOwnerKeyName()
/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php line 71

I tracked it and looks like method getOwnerKeyName() does not exist in belongsToMany relations
take a look at /vendor/savannabits/primevue-datatables/src/PrimevueDatatables.php:128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant