Skip to content

Commit 50ce7bd

Browse files
committed
🔨 modify latest() and oldest() methods to return CI_DB_query_builder
Signed-off-by: otengkwame <[email protected]>
1 parent 1b82138 commit 50ce7bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/core/Models/EasyModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ public function orderBy($orderby, $direction = '')
13981398
* latest function
13991399
*
14001400
* @param string $column
1401-
* @return mixed
1401+
* @return CI_DB_query_builder
14021402
*/
14031403
public function latest($column = 'created_at')
14041404
{
@@ -1409,7 +1409,7 @@ public function latest($column = 'created_at')
14091409
* oldest function
14101410
*
14111411
* @param string $column
1412-
* @return mixed
1412+
* @return CI_DB_query_builder
14131413
*/
14141414
public function oldest($column = 'created_at')
14151415
{

0 commit comments

Comments
 (0)