php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

Filter primary table on conditions on secondary table

Open ubergeekzone opened this issue 7 years ago • 10 comments

If the matching column is found on a relationship table instead of the primary table, how could I limit records that are shown on the primary?

ubergeekzone avatar Sep 21 '17 19:09 ubergeekzone

Thank you for reaching out. Unfortunately that is not supported. As a workaround you can make the other table the primary table or do two requests.

mevdschee avatar Sep 23 '17 14:09 mevdschee

@mevdschee Why can this not be supported?

ubergeekzone avatar Sep 23 '17 14:09 ubergeekzone

Why can this not be supported?

It can. I'll make this a feature request.

mevdschee avatar Sep 23 '17 16:09 mevdschee

Can you provide some insight on where in your code I would make this happen? I can code it in.

ubergeekzone avatar Sep 23 '17 16:09 ubergeekzone

@mevdschee ^^^^

ubergeekzone avatar Sep 26 '17 15:09 ubergeekzone

@mevdschee any idea on if and when you could get this implemented? maybe a parameter that allows this feature to be included or not.

ubergeekzone avatar Sep 27 '17 01:09 ubergeekzone

Same request.

tinyCoder32 avatar Oct 22 '17 20:10 tinyCoder32

Any update on this or any update on my question see my quote.

Can you provide some insight on where in your code I would make this happen? I can code it in.

ubergeekzone avatar Feb 21 '18 20:02 ubergeekzone

In the current implementation I see no straightforward way to build this. I'm currently rewriting this software (in java, see: https://github.com/mevdschee/java-crud-api) and maybe the new implementation structure allows this, but I doubt it. That java implementation will be backported to this project as version 2.x. Not sure when this feature will be available.. if ever..

mevdschee avatar Feb 21 '18 20:02 mevdschee

An update: This will NOT be included in v2.

mevdschee avatar May 21 '18 17:05 mevdschee