hi
i am trying to upgrade from php sdk 2.6 to 3.o the issue i am facing right now is . Niql query returning array instead of object as it was return object in sdk 2.6. is there any way to get object or i need to replace my code with array instead of object ?
HI thanks. I have read it everything is fine. My issue is my app is displaying data as object previously it was return object when i was using php sdk 2.6 but now its returning array using n1ql. The doc is also saying the same that in sdk 3.0 it returns array. Is there any way to get return data as object without doing any casting in php.I am saying this because my app becomes huge now. Thanks
$query = "SELECT branch.*, region.country, region.province_name, region.region_name FROM bucket1 branch LEFT JOIN bucket1 region ON region.region_id = branch.province AND region.type = ‘region’
WHERE ( LOWER(branch.contact) LIKE LOWER('%$this->search_keyword%')
OR LOWER(branch.code) LIKE LOWER('%$this->search_keyword')
OR LOWER(branch.mall) LIKE LOWER('%$this->search_keyword'))
AND branch.type = 'branch' ORDER BY branch.updated_date ASC LIMIT 20";
$result = $this->cluster->query($query);
return $result->rows();