| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function orderBy($column, $direction = 'asc') |
||
| 23 | { |
||
| 24 | /** @var Localizable $localizableModel */ |
||
| 25 | $localizableModel = $this->model; |
||
| 26 | |||
| 27 | if ($localizableModel->isLocalizableAttribute($column)) { |
||
| 28 | $this->joinWithTranslation(); |
||
| 29 | } |
||
| 30 | |||
| 31 | return parent::orderBy($column, $direction); |
||
|
|
|||
| 32 | } |
||
| 53 |