Skip to content

Commit 6c44598

Browse files
committed
Add a note about a BC break on Query::execute() return types.
1 parent 5b0c82c commit 6c44598

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

UPGRADE-2.0.md

+3
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ ocramius. If you are checking for proxies, the following changed:
264264
* The `getIterator` method in `Doctrine\ODM\MongoDB\Query\Query` returns an
265265
iterator of type `Doctrine\ODM\MongoDB\Iterator\Iterator` instead of a MongoDB
266266
cursor.
267+
* The `execute` method in `Doctrine\ODM\MongoDB\Query\Query` now returns an
268+
iterator of type `Doctrine\ODM\MongoDB\Iterator\Iterator` for find queries,
269+
and a plain array for distinct queries.
267270
* The `eagerCursor` helper in `Doctrine\ODM\MongoDB\Query\Builder` and its logic
268271
have been removed entirely without replacement.
269272
* Querying for a mapped superclass in a complex inheritance chain will now only

0 commit comments

Comments
 (0)