From f23446ef924551659f09c50e25f2dc6909ca2f5d 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) {