Skip to content

Problem in sorting many to many relations #11

Open
@AbolfazlAkhtari

Description

@AbolfazlAkhtari

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions