Skip to content

Commit

Permalink
Fixed QueryBuilder bug;
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ome committed Feb 25, 2015
1 parent bd570f3 commit ecb052c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapters/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ecb052c

Please sign in to comment.