MedicOneSystems / MedicOneSystems/livewire-datatables
Many to Many relations with MS SQL
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
I noticed the sql produced in many to many relations (belongsToMany with pivot table) is in mysql format even if i use a different db like MS SQL.
As a workaround i can join tables in the builder, but a working code would be a much better solution.
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing a belongsToMany query with a pivot table while using MS SQL, then inspect the SQL generated by the datatable query path and compare it with the MySQL-formatted output described in the issue. Done means many-to-many relations generate SQL that works with MS SQL without requiring a manual builder join.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php, sql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100