Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b2fc1d

Browse files
Accept Column object through setColumns.
Select->setColumns was limited to accept string... having it accept Column type object extends ability to add complex functions or manipulations.
1 parent e3d8c7c commit 4b2fc1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/Syntax/SyntaxFactory.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public static function createColumns(array &$arguments, $table = null)
3535
$column->setAlias($index);
3636
}
3737

38+
$createdColumns[] = $column;
39+
} else if ($column instanceof Column) {
3840
$createdColumns[] = $column;
3941
}
4042
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /