Skip to content

Commit

Permalink
Merge pull request #400 from doctrine/2.2.x
Browse files Browse the repository at this point in the history
Merge 2.2.x up into 3.0.x
  • Loading branch information
greg0ire authored Feb 25, 2024
2 parents d72a9c0 + 07e16cd commit 9ccf128
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,12 @@ You can find a list of major changes to public API below.
| 1.0.x | 3.0.x |
|-------------------------------:|:-------------------------------------------|
| `matching(Criteria $criteria)` | `matching(Criteria $criteria): Collection` |

# Upgrade to 1.7

## Deprecated null first result

Passing null as `$firstResult` to
`Doctrine\Common\Collections\Criteria::__construct()` and to
`Doctrine\Common\Collections\Criteria::setFirstResult()` is deprecated.
Use `0` instead.
2 changes: 2 additions & 0 deletions docs/en/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ orderBy
Sets the ordering of the result of this Criteria.

.. code-block:: php
use Doctrine\Common\Collections\Order;
$criteria->orderBy(['name' => Order::Ascending]);
setFirstResult
Expand Down

0 comments on commit 9ccf128

Please sign in to comment.