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