Apparently, strings in DQL can only be encapsulated by single quotes, not
double quotes. A brief search in the documentation did not turn up a direct
mention of this behavior, but I noticed that all examples which included
constant strings used single quotes.
Changing
->select('CONCAT(customer.firstname, " ", customer.lastname) AS full_name')
to
->select('CONCAT(customer.firstname, \' \', customer.lastname) AS
full_name')
or
->select("CONCAT(customer.firstname, ' ', customer.lastname) AS full_name")
solved the issue
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.