Problem in sorting many to many relations
AbolfazlAkhtari opened this issue · 0 comments
AbolfazlAkhtari commented
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