From ecb052c7c260abcf5990876ab0199e9dca34011d Mon Sep 17 00:00:00 2001 From: w1n2k Date: Wed, 25 Feb 2015 17:20:09 +0300 Subject: [PATCH] Fixed QueryBuilder bug; --- src/Adapters/QueryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapters/QueryBuilder.php b/src/Adapters/QueryBuilder.php index 44f8872..6151b8b 100644 --- a/src/Adapters/QueryBuilder.php +++ b/src/Adapters/QueryBuilder.php @@ -19,7 +19,7 @@ public function getResponse() { $total = $builder->getPaginate(); $this->bind('global_search', function($column, $search) { - $this->builder->orWhere("{$column} LIKE ?0", ["%{$search}%"]); + $this->builder->orWhere("{$column} LIKE :key_{$column}:", ["key_{$column}" => "%{$search}%"]); }); $this->bind('column_search', function($column, $search) {