Skip to content

Commit 4b2fc1d

Browse files
authored
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)