File tree Expand file tree Collapse file tree 3 files changed +17
-17
lines changed Expand file tree Collapse file tree 3 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ enum SearchByFlag {
134
134
135
135
"""Relation condition for input Nested."""
136
136
input SearchByRelationNested {
137
- """Has? """
138
- has : SearchByConditionNested !
137
+ """Conditions for the related objects. """
138
+ where : SearchByConditionNested !
139
139
140
140
"""Equal (`=`)."""
141
141
eq : Int
Original file line number Diff line number Diff line change 19
19
*/
20
20
class Relation extends BaseOperator implements ComplexOperator, OperatorNegationable {
21
21
public function getName (): string {
22
- return 'has ' ;
22
+ return 'where ' ;
23
23
}
24
24
25
25
protected function getDescription (): string {
26
- return 'Has? ' ;
26
+ return 'Conditions for the related objects. ' ;
27
27
}
28
28
29
29
/**
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ static function (): EloquentBuilder {
99
99
},
100
100
'test ' ,
101
101
[
102
- 'has ' => 'yes ' ,
102
+ 'where ' => 'yes ' ,
103
103
],
104
104
],
105
105
'{has: yes, not: yes} ' => [
@@ -115,8 +115,8 @@ static function (): EloquentBuilder {
115
115
},
116
116
'test ' ,
117
117
[
118
- 'has ' => 'yes ' ,
119
- 'not ' => 'yes ' ,
118
+ 'where ' => 'yes ' ,
119
+ 'not ' => 'yes ' ,
120
120
],
121
121
],
122
122
'{has: {property: {eq: 1}}} ' => [
@@ -132,7 +132,7 @@ static function (): EloquentBuilder {
132
132
},
133
133
'test ' ,
134
134
[
135
- 'has ' => [
135
+ 'where ' => [
136
136
'property ' => [
137
137
'eq ' => 123 ,
138
138
],
@@ -152,8 +152,8 @@ static function (): EloquentBuilder {
152
152
},
153
153
'test ' ,
154
154
[
155
- 'has ' => 'yes ' ,
156
- 'eq ' => 345 ,
155
+ 'where ' => 'yes ' ,
156
+ 'eq ' => 345 ,
157
157
],
158
158
],
159
159
'{has: yes, eq: 1, not: yes} ' => [
@@ -169,9 +169,9 @@ static function (): EloquentBuilder {
169
169
},
170
170
'test ' ,
171
171
[
172
- 'has ' => 'yes ' ,
173
- 'not ' => 'yes ' ,
174
- 'eq ' => 345 ,
172
+ 'where ' => 'yes ' ,
173
+ 'not ' => 'yes ' ,
174
+ 'eq ' => 345 ,
175
175
],
176
176
],
177
177
'{has: yes, eq: 1, gt: 2} ' => [
@@ -183,9 +183,9 @@ static function (): EloquentBuilder {
183
183
},
184
184
'test ' ,
185
185
[
186
- 'has ' => 'yes ' ,
187
- 'eq ' => 345 ,
188
- 'gt ' => 2 ,
186
+ 'where ' => 'yes ' ,
187
+ 'eq ' => 345 ,
188
+ 'gt ' => 2 ,
189
189
],
190
190
],
191
191
'{has: {property: {eq: 1}}} (own) ' => [
@@ -202,7 +202,7 @@ static function (): EloquentBuilder {
202
202
},
203
203
'a ' ,
204
204
[
205
- 'has ' => [
205
+ 'where ' => [
206
206
'property ' => [
207
207
'eq ' => 123 ,
208
208
],
You can’t perform that action at this time.
0 commit comments