Welcome Guest, Not a member yet? Register   Sign In
is it a bug? customResultObject()
#2

(This post was last modified: 05-10-2018, 11:25 AM by Paradinight.)

(05-10-2018, 09:21 AM)smotrikov Wrote: Hello . I'm trying to get the query result using getCustomRowObject() .
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'); 
But I get an error : 
Code:
Call to undefined method CodeIgniter\\Database\\MySQLi\\Result::customResultObject()
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

lates version?

https://github.com/bcit-ci/CodeIgniter4/...t.php#L336

edit:
it is missing. a bug :/
Reply


Messages In This Thread
is it a bug? customResultObject() - by smotrikov - 05-10-2018, 09:21 AM
RE: is it a bug? customResultObject() - by Paradinight - 05-10-2018, 11:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB