05-10-2018, 09:21 AM
Hello . I'm trying to get the query result using getCustomRowObject() .
Example
But I get an error :
I looked through two files: \system\Database\BaseResult.php and \system\Database\ResultInterface.php . I did not find a method customResultObject() . Can help solve this problem?
Thanks
Example
PHP Code:
$query = $this->db->query("SELECT 1 as `user_id`,'[email protected]' as `email` , 'asdasd' as `password` ");
return $query->getCustomRowObject(0,'App\Entities\User');
Code:
Call to undefined method CodeIgniter\\Database\\MySQLi\\Result::customResultObject()
Thanks