@@ -462,7 +462,7 @@ public function filter($data)
462
462
* Set table alias for next find()
463
463
*
464
464
* @param string Table alias name
465
- * @return self
465
+ * @return $this
466
466
*/
467
467
public function setAlias ($ alias )
468
468
{
@@ -478,7 +478,7 @@ public function setAlias($alias)
478
478
* Create an existent CI Query Builder instance with Model features for query purpose.
479
479
*
480
480
* @param boolean $withAll withAll() switch helper
481
- * @return object CI_DB_query_builder
481
+ * @return \CI_DB_query_builder CI_DB_query_builder
482
482
* @example
483
483
* $posts = $this->PostModel->find()
484
484
* ->where('is_public', '1')
@@ -531,7 +531,7 @@ public function find($withAll=false)
531
531
/**
532
532
* Create an CI Query Builder instance without Model Filters for query purpose.
533
533
*
534
- * @return object CI_DB_query_builder
534
+ * @return \CI_DB_query_builder CI_DB_query_builder
535
535
*/
536
536
public function forceFind ()
537
537
{
@@ -624,7 +624,7 @@ public static function findAll($condition=[], $limit=null)
624
624
/**
625
625
* reset an CI Query Builder instance with Model.
626
626
*
627
- * @return object Self
627
+ * @return $this
628
628
* @example
629
629
* $this->Model->reset()->find();
630
630
*/
@@ -999,7 +999,7 @@ public function sharedLock()
999
999
/**
1000
1000
* Without SOFT_DELETED query conditions for next find()
1001
1001
*
1002
- * @return object Self
1002
+ * @return $this
1003
1003
* @example
1004
1004
* $this->Model->withTrashed()->find();
1005
1005
*/
@@ -1013,7 +1013,7 @@ public function withTrashed()
1013
1013
/**
1014
1014
* Without Global Scopes query conditions for next find()
1015
1015
*
1016
- * @return object Self
1016
+ * @return $this
1017
1017
* @example
1018
1018
* $this->Model->withoutGlobalScopes()->find();
1019
1019
*/
@@ -1028,7 +1028,7 @@ public function withoutGlobalScopes()
1028
1028
* Without all query conditions for next find()
1029
1029
* That is, with all set of Models for next find()
1030
1030
*
1031
- * @return object Self
1031
+ * @return $this
1032
1032
* @example
1033
1033
* $this->Model->withAll()->find();
1034
1034
*/
@@ -1154,7 +1154,7 @@ public function afterSave($insert, $changedAttributes)
1154
1154
* @param string $modelName The model class name of the related record
1155
1155
* @param string $foreignKey
1156
1156
* @param string $localKey
1157
- * @return object CI_DB_query_builder
1157
+ * @return \CI_DB_query_builder CI_DB_query_builder
1158
1158
*/
1159
1159
public function hasMany ($ modelName , $ foreignKey =null , $ localKey =null )
1160
1160
{
@@ -1167,7 +1167,7 @@ public function hasMany($modelName, $foreignKey=null, $localKey=null)
1167
1167
* @param string $modelName The model class name of the related record
1168
1168
* @param string $foreignKey
1169
1169
* @param string $localKey
1170
- * @return object CI_DB_query_builder
1170
+ * @return \CI_DB_query_builder CI_DB_query_builder
1171
1171
*/
1172
1172
public function hasOne ($ modelName , $ foreignKey =null , $ localKey =null )
1173
1173
{
@@ -1181,7 +1181,7 @@ public function hasOne($modelName, $foreignKey=null, $localKey=null)
1181
1181
* @param string $relationship
1182
1182
* @param string $foreignKey
1183
1183
* @param string $localKey
1184
- * @return object CI_DB_query_builder
1184
+ * @return \CI_DB_query_builder CI_DB_query_builder
1185
1185
*/
1186
1186
protected function _relationship ($ modelName , $ relationship , $ foreignKey =null , $ localKey =null )
1187
1187
{
@@ -1435,7 +1435,7 @@ protected function _attrEventBeforeDelete(&$attributes)
1435
1435
* @param mixed Primary key value or a set of column values. If is null, it would be used for
1436
1436
* previous find() method, which means it would not rebuild find() so it would check and
1437
1437
* protect the SQL statement.
1438
- * @return object CI_DB_query_builder
1438
+ * @return \CI_DB_query_builder CI_DB_query_builder
1439
1439
* @internal
1440
1440
* @example
1441
1441
* // find a single customer whose primary key value is 10
0 commit comments