Add Model::loadBy() complex condition support#1125
Merged
Conversation
9ca2cae to
7b9b1bc
Compare
7b9b1bc to
6dc21d2
Compare
5c8a017 to
bbfc824
Compare
Contributor
|
Hi @mvorisek, I wonder what the usecase of this is? At the moment, loading with complex conditions can be done by something like What is the advantage of providing loadBy() with much more complex arguments? Best regards |
Member
Author
@PhilippGrashoff the model (and result entity) conditions are not mutated, the "load by" conditions are used to restrict the condition during the lookup only |
722c4d7 to
b675dba
Compare
b675dba to
a11837d
Compare
a11837d to
f218e6d
Compare
d81252c to
85cf69d
Compare
85cf69d to
06696f3
Compare
773df62 to
03712f0
Compare
03712f0 to
18d43cf
Compare
c2a57af to
ebf7bd5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
also introduce
Model::createIteratorBy()methodboth methods accept exactly the same data as
Model::addCondition()method