Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Support embeddables in order columns
Browse files Browse the repository at this point in the history
  • Loading branch information
foaly-nr1 committed Sep 28, 2016
1 parent cbe8e59 commit 0e5bb9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Datatable/Data/DatatableQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ private function setupColumnArrays()
if (count($parts) > 1) {
// If it's an embedded class, we can query without JOIN
if (array_key_exists($parts[0], $metadata->embeddedClasses)) {
$this->selectColumns[$currentAlias][] = str_replace('\\', '', $data);
$this->addSearchOrderColumn($key, $currentAlias, $data);
$column = str_replace('\\', '', $data);
$this->selectColumns[$currentAlias][] = $column;
$this->addSearchOrderColumn($key, $currentAlias, $column);
continue;
}
} else {
Expand Down

0 comments on commit 0e5bb9b

Please sign in to comment.