@@ 386-399 (lines=14) @@ | ||
383 | $keyword |
|
384 | ); |
|
385 | } |
|
386 | } else { |
|
387 | if (count(explode('.', $column)) > 1) { |
|
388 | $eagerLoads = $this->getEagerLoads(); |
|
389 | $parts = explode('.', $column); |
|
390 | $relationColumn = array_pop($parts); |
|
391 | $relation = implode('.', $parts); |
|
392 | if (in_array($relation, $eagerLoads)) { |
|
393 | $column = $this->joinEagerLoadedColumn($relation, $relationColumn); |
|
394 | } |
|
395 | } |
|
396 | ||
397 | $keyword = $this->getSearchKeyword($index); |
|
398 | $this->compileColumnSearch($index, $column, $keyword); |
|
399 | } |
|
400 | ||
401 | $this->isFilterApplied = true; |
|
402 | } |
|
@@ 179-198 (lines=20) @@ | ||
176 | $globalKeyword |
|
177 | ); |
|
178 | } |
|
179 | } else { |
|
180 | if (count(explode('.', $columnName)) > 1) { |
|
181 | $eagerLoads = $this->getEagerLoads(); |
|
182 | $parts = explode('.', $columnName); |
|
183 | $relationColumn = array_pop($parts); |
|
184 | $relation = implode('.', $parts); |
|
185 | if (in_array($relation, $eagerLoads)) { |
|
186 | $this->compileRelationSearch( |
|
187 | $queryBuilder, |
|
188 | $relation, |
|
189 | $relationColumn, |
|
190 | $globalKeyword |
|
191 | ); |
|
192 | } else { |
|
193 | $this->compileQuerySearch($queryBuilder, $columnName, $globalKeyword); |
|
194 | } |
|
195 | } else { |
|
196 | $this->compileQuerySearch($queryBuilder, $columnName, $globalKeyword); |
|
197 | } |
|
198 | } |
|
199 | ||
200 | $this->isFilterApplied = true; |
|
201 | } |