mevdschee / mevdschee/php-crud-api
Exclude primary key from joined tables
@mevdschee is already working on this.
Since May 3, 2019.
- Dominant language
- PHP
- Stars
- 3.7k
- Forks
- 1k
- Avg merge
- 1h 55m
- Merged PRs (30d)
- 7
Description
Hi there,
Firstly thanks for this great software (especially Slim integration was something I've been waiting for).
When trying to exclude primary keys from joined tables via the url eg /records/table/1?join=table1,table2&exclude=table1.id, there's an error: <b>Notice</b>: Undefined index: id in <b>.../api.php</b> on line <b>5025</b><br />.
I know it's not a big deal -- and for sure something that can be handled from the developer's side (as in my case that I don't want some ids exposed), but it would be good to have it being supported natively.
Regards,
Christos
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.