-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Scope class for filtering/where impl. for Model #660
Merged
Merged
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
e1e0ae7
[feature] introduce basic model scope functionality
georgehristov c7e2c85
[fix] remove Model::$conditions property
georgehristov 55e527b
[fix] code comments
georgehristov b25b01e
[update] require strictly correct junction value
georgehristov 64ac1ca
[fix] use assertSame in tests
georgehristov e57df59
[update] remove unnecessary code
georgehristov 0e0a040
[update] use limit as param name
georgehristov aae0f5d
[update] shorter way to ensure AND junction in Scope
georgehristov a233b34
[update] use str_contains
georgehristov 6ff4b73
[fix] change more assertEquals to assertSame
georgehristov e3783e8
[update] flexibility for bool only when 1 argument
georgehristov 371d2fa
[update] revert commented out code
georgehristov e0fd02c
[update] set getModel return type
georgehristov faef583
[update] use str_contains
georgehristov 88ab0f6
[update] remove ! and ? special symbols
georgehristov 845ca31
[update] introduce multi-level reference condition testing
georgehristov f7f0d13
[update] remove unnecessary check
georgehristov 08be267
[fix] code comments
georgehristov f5051e6
[update] improve CS
georgehristov 9c497a5
[update] use spread operator in condition merging
georgehristov a1c17c1
[update] introduce return type for simplify
georgehristov b9895f7
[update] introduce test for empty IN array
georgehristov 72286a1
[fix] CS fixer
georgehristov 01b9052
[update] remove unnecessary check
georgehristov c395540
[update] simplify CompoundCondition::clear
georgehristov 99ec94e
[update] trigger onModelChange only if not same model
georgehristov a5760b7
[update] initQueryConditions returns void
georgehristov 2438abc
[update] include repeating model reference testing
georgehristov c3849a9
[update] toArrat to toQueryArgumentsArray
georgehristov 463e82a
[update] isEmpty method
georgehristov acc19e1
[update] use single quotes
georgehristov 0c2cd3e
[fix] operator to words falls back to actual operator value
georgehristov 8f25544
[fix] array persistence query
georgehristov e62780c
[update] add complex test for referenced records
mvorisek 3662dc8
[fix] remove ? and ! special symbols in toWords
georgehristov b8b579d
[update] optional model as argument on toWords
georgehristov 95d93df
[fix] operatorToWords
georgehristov 5643d6c
[update] rename toQueryArgumentsArray to toQueryArguments
georgehristov f8e3e4f
[fix] CS Fixer
georgehristov 9b3d02c
[fix] typo
georgehristov 5f3b779
typo
DarkSide666 caf4c39
typo
DarkSide666 719d59e
add complex but always true condition
mvorisek accfa6c
make onChangeModel protected
mvorisek b28e39a
[update] separate exception info
georgehristov 3aa7820
[fix] condition with NULL value
georgehristov 47ca200
no need to clone in BasicCondition::toQueryArguments()
mvorisek 08c5191
fix toWords() doc
mvorisek f22c8a7
remove on() (expensive model clone)
mvorisek 4464c57
[update] simplify toWords further
georgehristov 408e104
rename mergeXx to createXx
mvorisek 1ed5129
new self to new static
mvorisek 8487663
[fix] test toWords
georgehristov 8197334
fix Scope::createAnd/Or for real world usage
mvorisek 1de2aec
make Scope constructor protected
mvorisek 0b65f8e
fix CS
mvorisek 954db74
[update] introduce addCondition method to CompoundCondition
georgehristov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self
is intentional as usingModel\Scope::createAnd
brings unexpected results