Hi everybody!
I am a newbie. I am using CakePHP 3.x. I want get all data in Users table. This is my code:
$userId = array(1,2,3,4,5,6,7,8,9,10);
$this->Users->find(‘all’, array(
‘conditions’ => array(‘Users.id’ => $userId),
‘fields’ => array(‘name’, ‘email’)
))->toArray();
But it get Error: [InvalidArgumentException] Cannot convert value to integer.
So, I have to do.
Please help me.
Thank you so much.