You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conditions on joins are grouped with non-join conditions
This is a major change in the filtering syntax.
First, the following terms were renamed as follow:
- `conditions` => `groups`
- `fields` => `conditions`
- `conditionLogic` => `groupLogic`
- `fieldsLogic` => `conditionsLogic`
This is hopefully less confusing and more semantically correct.
We now have ordered `groups` of unordered `conditions`.
Second, the `joins` was moved from top-level to within a `group`. And
the join itself cannot define a logical operator anymore. Instead the
`conditionsLogic` of a specific `group` is used for all conditions
in that group, recursively including all conditions coming from joins.
This allow to use different conditions on a same join across different
groups and still keep control of how they are combined with the `groupLogic`.
A concrete example of that lives in `alternative-groups-with-multiple-joins.php`.
Copy file name to clipboardExpand all lines: phpstan.neon
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,6 @@ parameters:
10
10
- '~^Instanceof between string and GraphQL\\Type\\Definition\\Type will always evaluate to false\.$~'
11
11
- '~^Parameter #1 \$wrappedType of static method GraphQL\\Type\\Definition\\Type::~'
12
12
- '~^Parameter #2 \$type of static method GraphQL\\Doctrine\\Utils::getOperatorTypeName~'
13
-
- '~^Method GraphQL\\Doctrine\\Factory\\Type\\FilterTypeFactory\:\:getOperators\(\) should return array\<GraphQL\\Type\\Definition\\LeafType\> but returns array\<GraphQL\\Type\\Definition\\LeafType\|GraphQL\\Type\\Definition\\Type\>\.~'
13
+
- '~^Method GraphQL\\Doctrine\\Factory\\Type\\FilterGroupConditionTypeFactory::getOperators\(\) should return array\<GraphQL\\Type\\Definition\\LeafType\> but returns array\<GraphQL\\Type\\Definition\\LeafType\|GraphQL\\Type\\Definition\\Type\>\.~'
14
14
- '~::__construct\(\) does not call parent constructor from GraphQL\\Doctrine\\Definition\\EntityID\.$~'
15
-
- '~Property GraphQL\\Doctrine\\Annotation\\Field\:\:\$description \(string\) does not accept string\|null\.$~'
15
+
- '~Property GraphQL\\Doctrine\\Annotation\\Field::\$description \(string\) does not accept string\|null\.$~'
0 commit comments