File tree Expand file tree Collapse file tree 2 files changed +6
-27
lines changed
lib/Doctrine/ODM/MongoDB/Aggregation Expand file tree Collapse file tree 2 files changed +6
-27
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,6 @@ public function execute(array $options = []): Iterator
189
189
}
190
190
191
191
/**
192
- * @return Expr
193
- *
194
192
* @deprecated use createExpr instead
195
193
*/
196
194
public function expr (): Expr
Original file line number Diff line number Diff line change @@ -115,21 +115,12 @@ public function all(array $values): self
115
115
}
116
116
117
117
/**
118
- * Specify $expr criteria for the current field.
119
- *
120
- * You can create a new expression using the {@link Builder::matchExpr()}
121
- * method.
122
- *
123
- * @see Expr::expr()
124
- * @see https://docs.mongodb.com/manual/reference/operator/query/expr/
125
- *
126
- * @param array|Expr $expression
118
+ * Create a new Expr instance that can be used to build partial expressions
119
+ * for other operator methods.
127
120
*/
128
- public function createExpr ($ expression ): self
121
+ public function createExpr (): Expr
129
122
{
130
- $ this ->query ->expr ($ expression );
131
-
132
- return $ this ;
123
+ return $ this ->builder ->matchExpr ();
133
124
}
134
125
135
126
/**
@@ -184,21 +175,11 @@ public function exists(bool $bool): self
184
175
}
185
176
186
177
/**
187
- * Specify $expr criteria for the current field.
188
- *
189
- * You can create a new expression using the {@link Builder::matchExpr()}
190
- * method.
191
- *
192
- * @see Expr::expr()
193
- * @see https://docs.mongodb.com/manual/reference/operator/query/expr/
194
- *
195
- * @param array|Expr $expression
196
- *
197
178
* @deprecated use createExpr instead
198
179
*/
199
- public function expr ($ expression ): self
180
+ public function expr (): Expr
200
181
{
201
- return $ this ->createExpr ($ expression );
182
+ return $ this ->createExpr ();
202
183
}
203
184
204
185
/**
You can’t perform that action at this time.
0 commit comments