EDIT: This can probably be considered as a feature request.
I’m building a somewhat complex command, and I need to append to the selected fields in some cases.
I would expect the following to work:
$command->select(‘name,age’);
Then later on:
$command->select($command->getSelect().‘email,created)’); // with our without a leading , between old and new fields
However, this results in a syntax error in the SQL statement, due to the fields from the first select now being quoted twice.
I can work around this by not setting the select() until I know all the fields I need, but that’s not as elegant in my case.
This could be solved by adding a more intuitive method addSelect() or similar. I have not checked if this works for where(), but I’d guess the same is relevant there. Is this something you can consider adding?