Skip to content

Commit

Permalink
Accept Column object through setColumns.
Browse files Browse the repository at this point in the history
Select->setColumns was limited to accept string... having it accept Column type object
extends ability to add complex functions or manipulations.
  • Loading branch information
prasad83 authored Jun 21, 2017
1 parent e3d8c7c commit 4b2fc1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Syntax/SyntaxFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public static function createColumns(array &$arguments, $table = null)
$column->setAlias($index);
}

$createdColumns[] = $column;
} else if ($column instanceof Column) {
$createdColumns[] = $column;
}
}
Expand Down

0 comments on commit 4b2fc1d

Please sign in to comment.