diff --git a/lib/Cake/Model/Datasource/Database/Sqlite.php b/lib/Cake/Model/Datasource/Database/Sqlite.php index 4bd07169d..bfda2c8dd 100644 --- a/lib/Cake/Model/Datasource/Database/Sqlite.php +++ b/lib/Cake/Model/Datasource/Database/Sqlite.php @@ -593,10 +593,11 @@ class Sqlite extends DboSource { /** * Returns a locking hint for the given mode. + * * Sqlite Datasource doesn't support row-level locking. * * @param mixed $mode Lock mode - * @return string|null + * @return string|null Null */ public function getLockingHint($mode) { return null; diff --git a/lib/Cake/Model/Datasource/Database/Sqlserver.php b/lib/Cake/Model/Datasource/Database/Sqlserver.php index 0a5a02bff..90590e6ad 100644 --- a/lib/Cake/Model/Datasource/Database/Sqlserver.php +++ b/lib/Cake/Model/Datasource/Database/Sqlserver.php @@ -819,10 +819,11 @@ class Sqlserver extends DboSource { /** * Returns a locking hint for the given mode. - * Currently, this method only returns WITH (UPDLOCK) when the mode is true. + * + * Currently, this method only returns WITH (UPDLOCK) when the mode is set to true. * * @param mixed $mode Lock mode - * @return string|null + * @return string|null WITH (UPDLOCK) clause or null */ public function getLockingHint($mode) { if ($mode !== true) { diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 2d4789faf..f69144746 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -3141,7 +3141,7 @@ class DboSource extends DataSource { * @param mixed $fields Array or string of conditions * @param bool $quoteValues If true, values should be quoted * @param Model $Model A reference to the Model instance making the query - * @return string|null + * @return string|null HAVING clause or null */ public function having($fields, $quoteValues = true, Model $Model = null) { if (!$fields) { @@ -3152,10 +3152,11 @@ class DboSource extends DataSource { /** * Returns a locking hint for the given mode. - * Currently, this method only returns FOR UPDATE when the mode is true. + * + * Currently, this method only returns FOR UPDATE when the mode is set to true. * * @param mixed $mode Lock mode - * @return string|null + * @return string|null FOR UPDATE clause or null */ public function getLockingHint($mode) { if ($mode !== true) {