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