query-builder
query-builder copied to clipboard
Fast, simple and dependency-free query builder for PHP.
This is a fix that is solving the issue #5
as far as I noticed when you want to update using update or updateOrInsert the builder throws an error source()->from('countries')->update([ 'name' => 'Serbiasss', 'code' => 'RS', 'is_active' => 1 ]);...
Warning: Array to string conversion in D:\development\scraper\gptools\vendor\requtize\query-builder\src\QueryBuilder\QueryBuilder\Compiler.php on line 68 And I solved this problem ``` if(isset($querySegments['orderBy']) && is_array($querySegments['orderBy'])) { foreach($querySegments['orderBy'] as $order) $orderBy = $this->quoteTable($order['field']).' '.$order['type'].', '; if($orderBy =...
I encounter an error while using the `update()` function. When you execute ``` $DB->table('table')->where('id', 1)->getQuery('update', [ 'name' => 'table_name' ]); ``` The function will return ``` UPDATE `table` SET `name`...