Skip to content

Commit 0a75b7b

Browse files
committed
docs(database): clarify exists test mode return
Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent 70a2b40 commit 0a75b7b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎system/Database/BaseBuilder.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ public function countAll(bool $reset = true)
20512051
/**
20522052
* Determines whether the current Query Builder conditions match any rows.
20532053
*
2054-
* @return bool|string
2054+
* @return bool|string SQL string when test mode is enabled.
20552055
*/
20562056
public function exists(bool $reset = true)
20572057
{
@@ -2063,7 +2063,7 @@ public function exists(bool $reset = true)
20632063
/**
20642064
* Determines whether the current Query Builder conditions do not match any rows.
20652065
*
2066-
* @return bool|string
2066+
* @return bool|string SQL string when test mode is enabled.
20672067
*/
20682068
public function doesntExist(bool $reset = true)
20692069
{
@@ -2075,7 +2075,7 @@ public function doesntExist(bool $reset = true)
20752075
/**
20762076
* Runs an existence probe for the current Query Builder query.
20772077
*
2078-
* @return bool|string|null
2078+
* @return bool|string|null SQL string when test mode is enabled, or null when the query fails.
20792079
*/
20802080
protected function doExists(bool $reset = true)
20812081
{

0 commit comments

Comments
 (0)