mevdschee / mevdschee/php-crud-api
Support foreign key that points to a non-primary (unique) key
Open
@mevdschee is already working on this.
Since Jan 10, 2022.
enhancement
- Dominant language
- PHP
- Stars
- 3.7k
- Forks
- 1k
- Avg merge
- 1h 55m
- Merged PRs (30d)
- 7
Description
I have a questions table and an answers table. the answers table has a foreignKey field named questionUuid related to the field uuid (not related to the id field) of the question table. According to the docs, I supposed the join request would have been records/questions?join=answers but it actually doesn't work. Am I missing something?
If I filter the answers table per questionUuid, it applies correctly and I get only the answers related to their question.
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.
Assessment
This issue has not been assessed yet.