mevdschee / mevdschee/php-crud-api

Exclude primary key from joined tables

Open
#533 1 comment 1 reaction 1 assignee View on GitHub

@mevdschee is already working on this.

Since May 3, 2019.

enhancement
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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.