Doctrine dql select as with spaces

1.1k views Asked by At

I would like to know if it's possible to alias a column name with spaces in for example

$query = "SELECT u.firstName AS 'First Name' FROM User u";
$result = $query->getResult( Query::HYDRATE_ARRAY );
0

There are 0 answers