-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cleanup and tests #2567
Cleanup and tests #2567
Commits on Jun 29, 2023
-
PHPORM-39: Add namespace for tests directory (mongodb#2)
* Skip MySQL tests if database is not available * Introduce tests namespace
Configuration menu - View commit details
-
Copy full SHA for ea2da7a - Browse repository at this point
Copy the full SHA ea2da7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6e8a44 - Browse repository at this point
Copy the full SHA b6e8a44View commit details
Commits on Jul 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bc364b5 - Browse repository at this point
Copy the full SHA bc364b5View commit details
Commits on Jul 12, 2023
-
PHPORM-45 Add Query\Builder::toMql() to simplify comprehensive query …
…tests (mongodb#6) * PHPORM-45 Add Query\Builder::toMql() to simplify comprehensive query tests * Move Query/Builder unit tests to a dedicated test class
Configuration menu - View commit details
-
Copy full SHA for 60a22f4 - Browse repository at this point
Copy the full SHA 60a22f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 843904b - Browse repository at this point
Copy the full SHA 843904bView commit details -
PHPORM-46 Throw an exception when Query\Builder::orderBy() is used wi…
…th invalid direction (mongodb#7) * Convert only strings, let the driver fail for int values * Add more tests on Builder::orderBy
Configuration menu - View commit details
-
Copy full SHA for 8562a4b - Browse repository at this point
Copy the full SHA 8562a4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4658d54 - Browse repository at this point
Copy the full SHA 4658d54View commit details
Commits on Jul 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 78319d4 - Browse repository at this point
Copy the full SHA 78319d4View commit details -
Add header documentation for classes & traits that can be used in app…
…lications (mongodb#12) * Add header documentation for classes & traits that can be used in applications * Precise mixed types when possible
Configuration menu - View commit details
-
Copy full SHA for bd86f85 - Browse repository at this point
Copy the full SHA bd86f85View commit details
Commits on Jul 19, 2023
-
PHPORM-47 Improve Builder::whereBetween to support CarbonPeriod and r…
…eject invalid array (mongodb#10) The Query\Builder::whereBetween() method can be used like this: whereBetween('date_field', [min, max]) whereBetween('date_field', collect([min, max])) whereBetween('date_field', CarbonPeriod) Laravel allows other formats: the $values array is flatten and the builder assumes there are at least 2 elements and ignore the others. It's a design that can lead to misunderstandings. I prefer to raise an exception when we have incorrect values, rather than trying to guess what the developer would like to do. Support for CarbonPeriod was fixed in Laravel 10: laravel/framework#46720 because the query builder was taking the 1st 2 values of the iterator instead of the start & end dates.
Configuration menu - View commit details
-
Copy full SHA for cf103ba - Browse repository at this point
Copy the full SHA cf103baView commit details -
PHPORM-49 Implement
Query\Builder::whereNot
by encapsulating into `……$not` (mongodb#13) `Query\Builder::whereNot` was simply ignoring the "not" and breaking the built query.
Configuration menu - View commit details
-
Copy full SHA for 9d9c7c8 - Browse repository at this point
Copy the full SHA 9d9c7c8View commit details
Commits on Jul 20, 2023
-
PHPORM-49 Implement
Query\Builder::whereNot
by encapsulating into `……$not` (mongodb#13) (mongodb#15) `Query\Builder::whereNot` was simply ignoring the "not" and breaking the built query.
Configuration menu - View commit details
-
Copy full SHA for 52c0ea3 - Browse repository at this point
Copy the full SHA 52c0ea3View commit details
Commits on Jul 26, 2023
-
PHPORM-50 PHPORM-65 Remove call to deprecated Collection::count for c…
…ountDocuments (mongodb#18) https://www.mongodb.com/docs/php-library/current/reference/method/MongoDBCollection-count/ Fix pass options to countDocuments for transaction session
Configuration menu - View commit details
-
Copy full SHA for 9cbadea - Browse repository at this point
Copy the full SHA 9cbadeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03c58ea - Browse repository at this point
Copy the full SHA 03c58eaView commit details -
PHPORM-33 Add tests on Query\Builder methods (mongodb#14)
- Add tests on query builder methods that don't need to be fixed. - Throw exception when calling unsupported methods: whereIntegerInRaw, orWhereIntegerInRaw, whereIntegerNotInRaw, orWhereIntegerNotInRaw - Throw an exception when Query\Builder::where is called with only a column name
Configuration menu - View commit details
-
Copy full SHA for b0b796c - Browse repository at this point
Copy the full SHA b0b796cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2824dc4 - Browse repository at this point
Copy the full SHA 2824dc4View commit details -
PHPORM-68 Fix unique validator when the validated value is part of an…
… existing value (mongodb#21)
Configuration menu - View commit details
-
Copy full SHA for 3a46876 - Browse repository at this point
Copy the full SHA 3a46876View commit details
Commits on Jul 27, 2023
-
PHPORM-53 Fix and test
like
andregex
operators (mongodb#17)- Fix support for % and _ in like expression and escaped \% and \_ - Keep ilike and regexp operators as aliases for like and regex - Allow /, # and ~ as regex delimiters - Add functional tests on regexp and not regexp - Add support for not regex
Configuration menu - View commit details
-
Copy full SHA for 2319d53 - Browse repository at this point
Copy the full SHA 2319d53View commit details
Commits on Aug 2, 2023
-
PHPORM-35 Add various tests on Model
_id
types (mongodb#22)* PHPORM-35 Add various tests on Model _id * Add assertion on expected value * Test _id as array and object * Remove tests for arrays and objects as identifiers when keyType is string --------- Co-authored-by: Andreas Braun <git@alcaeus.org>
Configuration menu - View commit details
-
Copy full SHA for 9f1f8f3 - Browse repository at this point
Copy the full SHA 9f1f8f3View commit details