Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-2694

Hydrating with entities with the NEW operator


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


      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


          flip101 Flip created issue -
          ocramius Marco Pivetta made changes -
          Field Original Value New Value
          Link This issue is duplicated by DDC-2899 [ DDC-2899 ]
          mnapoli Matthieu Napoli made changes -
          Summary Hydrating objects with new keyword Hydrating with entities with the NEW operator
          mnapoli 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
          PostgreSQL 9.2.4 build 1600, 64-bits
          Microsoft SQL Server 2008 R2

          This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

          • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={expand=changesets[0:20].revisions[0:29],reviews, query=DDC-2694}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)


            • Assignee:
              beberlei Benjamin Eberlei
              flip101 Flip
            • Votes:
              3 Vote for this issue
              3 Start watching this issue


              • Created: