Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

PHPORM-67 Accept operators prefixed by $ in Query\Builder::orWhere #20

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

GromNaN
Copy link
Owner

@GromNaN GromNaN commented Jul 25, 2023

['find' => [
['$or' => [
['foo' => ['$type' => 2]],
['foo' => ['$type' => 4]],
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before the patch, the result was ['foo' => '$type'] because Builder::invalidOperator is true and transforms the filter to use $operator as $value.

@GromNaN GromNaN merged commit 03c58ea into master Jul 26, 2023
18 checks passed
@GromNaN GromNaN deleted the PHPORM-67 branch July 26, 2023 07:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants