@@ -139,9 +139,10 @@ |
||
| 139 | 139 | (new CompositeKeyScope($keys, $ids, $inverse, $this->getBinaryColumns()))->apply($query); |
| 140 | 140 | } else { |
| 141 | 141 | //remap hex ID to binary ID even if index is not composite |
| 142 | - if($this->shouldProcessBinaryAttribute($keys[0])) |
|
| 143 | - $ids = array_map(function($hex){ |
|
| 142 | + if($this->shouldProcessBinaryAttribute($keys[0])) { |
|
| 143 | + $ids = array_map(function($hex){ |
|
| 144 | 144 | return hex2bin($hex); |
| 145 | + } |
|
| 145 | 146 | }, $ids); |
| 146 | 147 | if ($inverse) { |
| 147 | 148 | $query->whereNotIn($this->qualifyColumn($keys[0]), $ids); |