MedicOneSystems / MedicOneSystems/livewire-datatables

Exportable not loading relationships

Open
#444 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

Hi,
i'm using the exportable property but if my model has relationships, when I click on the Export button, I receive an SQL error, column not found and after investigating, i've found that my relationships are not loaded by a left join..
How can I load my relationships within the exportable?

Thanks

I'm using v 0.8.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the exportable property and the Export button flow described in the issue, then reproduce the SQL column-not-found error using a model with relationships on v0.8.0. Done means related data is loaded during export and the export completes without the SQL error.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.