From 545a0085494b6ba67ce5cd2d571ea79a73c8fc02 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 18 Jul 2024 10:54:50 +0100 Subject: [PATCH] Update phpdoc on Table::findOneBy(...) to include false in @return change phpdoc on Table::findOneBy() to include 'false' If the fields specified do not match a row in the database, the underlying call on Doctrine_Query::fetchOne() will return false, so this method should as well. --- lib/Doctrine/Table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index faac80574..18ca4653c 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -1725,7 +1725,7 @@ public function findBy($fieldName, $value, $hydrationMode = null) * @param string $column field for the WHERE clause * @param string|array $value prepared statement parameter * @param int $hydrationMode Doctrine_Core::HYDRATE_ARRAY or Doctrine_Core::HYDRATE_RECORD - * @return Doctrine_Record + * @return Doctrine_Record|false */ public function findOneBy($fieldName, $value, $hydrationMode = null) {