@@ 162-181 (lines=20) @@ | ||
159 | $globalKeyword |
|
160 | ); |
|
161 | } |
|
162 | } else { |
|
163 | if (count(explode('.', $columnName)) > 1) { |
|
164 | $eagerLoads = $this->getEagerLoads(); |
|
165 | $parts = explode('.', $columnName); |
|
166 | $relationColumn = array_pop($parts); |
|
167 | $relation = implode('.', $parts); |
|
168 | if (in_array($relation, $eagerLoads)) { |
|
169 | $this->compileRelationSearch( |
|
170 | $queryBuilder, |
|
171 | $relation, |
|
172 | $relationColumn, |
|
173 | $globalKeyword |
|
174 | ); |
|
175 | } else { |
|
176 | $this->compileQuerySearch($queryBuilder, $columnName, $globalKeyword); |
|
177 | } |
|
178 | } else { |
|
179 | $this->compileQuerySearch($queryBuilder, $columnName, $globalKeyword); |
|
180 | } |
|
181 | } |
|
182 | ||
183 | $this->isFilterApplied = true; |
|
184 | } |
|
@@ 471-484 (lines=14) @@ | ||
468 | $keyword |
|
469 | ); |
|
470 | } |
|
471 | } else { |
|
472 | if (count(explode('.', $column)) > 1) { |
|
473 | $eagerLoads = $this->getEagerLoads(); |
|
474 | $parts = explode('.', $column); |
|
475 | $relationColumn = array_pop($parts); |
|
476 | $relation = implode('.', $parts); |
|
477 | if (in_array($relation, $eagerLoads)) { |
|
478 | $column = $this->joinEagerLoadedColumn($relation, $relationColumn); |
|
479 | } |
|
480 | } |
|
481 | ||
482 | $keyword = $this->getSearchKeyword($index); |
|
483 | $this->compileColumnSearch($index, $column, $keyword); |
|
484 | } |
|
485 | ||
486 | $this->isFilterApplied = true; |
|
487 | } |