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
Description
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
Labels
No labels