From b3405a3e8c6fd6b4939954d090d324109dd34500 Mon Sep 17 00:00:00 2001 From: thinkingmedia Date: Thu, 24 Mar 2016 23:47:55 -0400 Subject: [PATCH] added note about first() returning null --- en/orm/retrieving-data-and-resultsets.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/en/orm/retrieving-data-and-resultsets.rst b/en/orm/retrieving-data-and-resultsets.rst index ce4fee85ee..932a87085b 100644 --- a/en/orm/retrieving-data-and-resultsets.rst +++ b/en/orm/retrieving-data-and-resultsets.rst @@ -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 ==========================