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

Commit

Permalink
Merge pull request #473 from foaly-nr1/patch-embeddable-order-column
Browse files Browse the repository at this point in the history
Support embeddables in order columns
  • Loading branch information
stwe authored Oct 24, 2016
2 parents 23bbfa9 + 0e5bb9b commit 5ee0b5a
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 5ee0b5a

Please sign in to comment.