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

Consider adding EntityManager#link/unlink methods for direct association manipulation

    Details

    • Type: New Feature
    • Status: Awaiting Feedback
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0-ALPHA2
    • Fix Version/s: 2.x
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      A problem when working with collection-valued associations is that almost all operations except add($obj) require the collection to become initialized in order for the operation to be performed properly. While this is all correct and beautiful OO-wise it may be problematic at times with regards to performance. Hence we might want to consider to provide some convenient methods along the lines of link/unlink (name suggestions?) which allow more direct, less OO collection manipulation. Such methods obviously would bypass the normal object lifecycle and the changes done through these methods will not be reflected in the in-memory objects and collections, unless the user keeps them in-synch himself.

        Issue Links

          Activity

          romanb Roman S. Borschel created issue -
          romanb Roman S. Borschel made changes -
          Field Original Value New Value
          Issue Type Improvement [ 4 ] New Feature [ 2 ]
          romanb Roman S. Borschel made changes -
          Fix Version/s 2.x [ 10090 ]
          Fix Version/s 2.0 [ 10021 ]
          beberlei Benjamin Eberlei made changes -
          Link This issue is referenced by DDC-546 [ DDC-546 ]
          beberlei Benjamin Eberlei made changes -
          Workflow jira [ 10362 ] jira-feedback [ 13836 ]
          beberlei Benjamin Eberlei made changes -
          Workflow jira-feedback [ 13836 ] jira-feedback2 [ 15700 ]
          beberlei Benjamin Eberlei made changes -
          Workflow jira-feedback2 [ 15700 ] jira-feedback3 [ 17957 ]
          javedalam86 Javed made changes -
          Status Open [ 1 ] Awaiting Feedback [ 10000 ]

            People

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

              Dates

              • Created:
                Updated: