DDC-1729: Translate queries into graphs of value objects (instead of array hydration?) #2378

doctrinebot opened this Issue Mar 27, 2012 · 1 comment

2 participants


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.

  1. One additional property in ResultSetMapping => $viewModelClass?
  2. Changes to Parser (new ... syntax)
  3. Changes to sQL Walker?
  4. Changes to Hydration (Only object hydration!)
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.x milestone Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment