Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Relationship columns doesn't work? #93

Open
@darkons

Description

@darkons

I tried my first table with relation columns and I can't get them to work properly.

// This column returns the entire provider_type object
column(key: 'provider_type', label: 'Type', canBeHidden: false)

// This column returns empty value
column(key: 'provider_type.name', label: 'Type', canBeHidden: false)

My query builder:

$providers = QueryBuilder::for(Provider::class)
            ->with(['providerType'])
            ->defaultSort('name')
            ->allowedSorts(['name', 'cif'])
            ->allowedFilters(['name', 'cif'])
            ->paginate()
            ->withQueryString();

What am I doing wrong?

Thank you!

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