Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-21

Already fetched associations should not be overriden by subsequent queries.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-ALPHA3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      The discussion about this was brought up by DC-41. After checking the behavior of other ORMs (notably Hibernate), already fetched associations should not be overridden by subsequent queries, just like with other persistent state of already fetched entities. This saves performance and can assure a better integrity of the object model in-memory.

      Entities and their associations that are already in-memory should only be refreshed if this is done explicitly either through EntityManager#refresh($entity) or through using the Query::HINT_REFRESH query hint on any query.

        Issue Links

          Activity

          Roman S. Borschel created issue -
          Roman S. Borschel made changes -
          Field Original Value New Value
          Link This issue depends on DDC-22 [ DDC-22 ]
          Hide
          Roman S. Borschel added a comment -

          This behavior is already correct for single-valued associations but not for collections. Needs to be fixed in ObjectHydrator.

          Show
          Roman S. Borschel added a comment - This behavior is already correct for single-valued associations but not for collections. Needs to be fixed in ObjectHydrator.
          Roman S. Borschel made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          Roman S. Borschel made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Roman S. Borschel made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Fix Version/s 2.0-ALPHA3 [ 10029 ]
          Fix Version/s 2.0-BETA1 [ 10030 ]
          Resolution Fixed [ 1 ]
          Benjamin Eberlei made changes -
          Workflow jira [ 10114 ] jira-feedback [ 15416 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback [ 15416 ] jira-feedback2 [ 17280 ]
          Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 17280 ] jira-feedback3 [ 19537 ]

          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={query=DDC-21, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

            People

            • Assignee:
              Roman S. Borschel
              Reporter:
              Roman S. Borschel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: