• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is it a bug? customResultObject()

#1
Hello . I'm trying to get the query result using getCustomRowObject() .
Example 
PHP Code:
$query $this->db->query("SELECT 1 as `user_id`,'123@123.ru' 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
Reply

#2
(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`,'123@123.ru' 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

#3
(05-10-2018, 11:22 AM)Paradinight Wrote:
(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`,'123@123.ru' 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 :/

Thanks for your reply
Reply

#4
This has been fixed Smile
Reply

#5
(05-11-2018, 07:18 AM)ciadmin Wrote: This has been fixed Smile

thank Smile
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.