Skip to content

A few mods.. - #1

Open
netadvanced wants to merge 3 commits into
illuminerdi:masterfrom
netadvanced:master
Open

A few mods..#1
netadvanced wants to merge 3 commits into
illuminerdi:masterfrom
netadvanced:master

Conversation

@netadvanced

Copy link
Copy Markdown

Howdy Joshua,

As you will see, I added parentheses to the SQL statement to make it more bullet-proof in case you're using OR or BETWEEN statements for example. As well as made a few mods to keep backwards compatibility.

I had initially started creating extra DefaultScope arguments, such as mandatoryWhere, mandatoryOrder, etc... to be able to force "additional" clauses, but I was working on an older version and now that I see your solution, it is cleaner. My only worry with your solution was the fact that it would then make all arguments "additional" unless we use the exclude argument, which was kind of defeating the purpose of your original plugin idea of having default values overridden by the FindAll arguments.
I used the inclusive keyword that might be confusing for some, but respecting your exclusive syntax... we might have to change that.

Anyway, let me know what you think ?

Note: The `inclusive` argument could be ambiguous with the core.findAll()`include` argument and could be changed to something like `stack`, `stackArguments`. I initially tried to keep the same logic as the new `exclusive` argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant