pg-many-to-many
pg-many-to-many copied to clipboard
Junction filters
This implements basic junction table filtering for many-to-many connections, in the same way that PgConnectionArgCondition does. By default, this filtering arg is named junctionCondition, and is managed separately from the condition arg. However, if the developer adds a @manyToManyCombinedConditionArg smart comment to the constraint, the filters for the junction table and the right table will be combined in the condition arg (and duplicated filterable columns will result in an error).
This pull request depends on #43, and is rebased on top of it.
(v4.5.0-rc.0 is now out.)
This is great, thanks! I'm hesitating to merge only because filtering functionality tends to be a slippery slope (as I know all too well :wink: ). I'm also not sure it should be exposed by default.. on some of my own projects I've excluded the core PgConnectionArgCondition plugin and replaced it with the filter plugin, and I would probably exclude junctionCondition as well. How do you feel about maintaining this separately?