Jira issue originally created by user @beberlei:
In decoupled applications the model layer returns "data-transfer-objects" through the boundary into the controller/view layer. It would make sense to have Doctrine directly generate any data-transfer/value-object from native and dql queries.
Comment created by @beberlei:
$dql = "SELECT new CustomerAddressView(c.id, c.name, a.id, a.street, a.number, a.city, a.code)
FROM Customer c INNER JOIN c.address a WHERE c.id = ?1";
This supersedes DDC-1819.