@@ 329-337 (lines=9) @@ | ||
326 | ); |
|
327 | } |
|
328 | } else { |
|
329 | if (count(explode('.', $column)) > 1) { |
|
330 | $eagerLoads = $this->getEagerLoads(); |
|
331 | $parts = explode('.', $column); |
|
332 | $relationColumn = array_pop($parts); |
|
333 | $relation = implode('.', $parts); |
|
334 | if (in_array($relation, $eagerLoads)) { |
|
335 | $column = $this->joinEagerLoadedColumn($relation, $relationColumn); |
|
336 | } |
|
337 | } |
|
338 | ||
339 | $column = $this->castColumn($column); |
|
340 | $keyword = $this->getSearchKeyword($index); |
|
@@ 441-450 (lines=10) @@ | ||
438 | $orderable['direction'] |
|
439 | ); |
|
440 | } else { |
|
441 | if (count(explode('.', $column)) > 1) { |
|
442 | $eagerLoads = $this->getEagerLoads(); |
|
443 | $parts = explode('.', $column); |
|
444 | $relationColumn = array_pop($parts); |
|
445 | $relation = implode('.', $parts); |
|
446 | ||
447 | if (in_array($relation, $eagerLoads)) { |
|
448 | $column = $this->joinEagerLoadedColumn($relation, $relationColumn); |
|
449 | } |
|
450 | } |
|
451 | ||
452 | $this->getQueryBuilder()->orderBy($column, $orderable['direction']); |
|
453 | } |