Skip to content

Commit

Permalink
Merge pull request cakephp#3855 from thinkingmedia/3.0
Browse files Browse the repository at this point in the history
added note about first() returning null
  • Loading branch information
lorenzo committed Mar 25, 2016
2 parents 76d4ce0 + b3405a3 commit 9d95f67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions en/orm/retrieving-data-and-resultsets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ This approach replaces ``find('first')`` in previous versions of CakePHP. You
may also want to use the ``get()`` method if you are loading entities by primary
key.

.. note::

The ``first()`` method will return ``null`` if no results are found.

Getting a Count of Results
==========================

Expand Down

0 comments on commit 9d95f67

Please sign in to comment.