Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2694

Hydrating with entities with the NEW operator

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      It would be nice if the new function accepted objects as parameters, like this:

      new Country(country, some_extra_stuff)
      

      Alternatively another keyword could be introduced that constructs the object with the parameter and afterwards hydrates it.

        Issue Links

          Activity

          Flip created issue -
          Marco Pivetta made changes -
          Field Original Value New Value
          Link This issue is duplicated by DDC-2899 [ DDC-2899 ]
          Matthieu Napoli made changes -
          Summary Hydrating objects with new keyword Hydrating with entities with the NEW operator
          Matthieu Napoli made changes -
          Environment Windows 7 Professional 64 bits
          PHP 5.4.11 (cli) (built: Jan 16 2013 20:26:26)
          Doctrine dev-master from 18-9-2013
          mysql-5.6.13-winx64
          PostgreSQL 9.2.4 build 1600, 64-bits
          Microsoft SQL Server 2008 R2

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Flip
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: