I\'m trying to do a simple select query with a subquery in the SELECT clause and have simply not found a way to do it. I\'ve tried with both DQL and with the QueryBuilder, n
$query = $qb->select('a') ->addSelect('(SELECT at.addresstypeName FROM e:Addresstype at WHERE at.addresstypeId = a.addresstypeId) AS addresstypeName' ) ->from('e:Address', 'a') ->where('a.addressId = :addressId') ->setParameter('addressId', 1);