Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2899

Allow the NEW operator to construct objects containing entities

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      E.g.:

      SELECT NEW CustomerDTO(c, SUM(o.value)) FROM Customer c JOIN c.orders o GROUP BY c

      public function __construct(Customer $c, $sum)

      { ... }

        Issue Links

          Activity

          Hide
          Flip added a comment -

          Show
          Flip added a comment -
          Hide
          Flip added a comment -

          This is actually a duplicate, prior: http://www.doctrine-project.org/jira/browse/DDC-2694

          Show
          Flip added a comment - This is actually a duplicate, prior: http://www.doctrine-project.org/jira/browse/DDC-2694
          Hide
          Marco Pivetta added a comment -

          Duplicate of DDC-2694

          Show
          Marco Pivetta added a comment - Duplicate of DDC-2694

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Glen Ainscow
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: