Bug: Argument 1 passed to CodeIgniter\Database\BaseResult::getFirstRow() must be of the type string, null given, called in /system/Model.php on line 383 #2877
Labels
bug
Verified issues on the current code behavior or pull requests that will fix them
Hi,
In my model I am trying to get an item by its ID. My code is given bellow:
$id = 5;
$currentUser = new User($id);
I obtain:
Argument 1 passed to CodeIgniter\Database\BaseResult::getFirstRow() must be of the type string, null given, called in /system/Model.php on line 383
CodeIgniter 4.0.2
The text was updated successfully, but these errors were encountered: