Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1278

EntityManager::clear($entity) support

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      It was originally planned that EntityManager::clear() would also support an optional argument - $entity -, which would remove only the reference to an existent entity (maybe also consider a new cascade to allow graph clearing) from UoW.
      Currently, it's win or wall. You can't clear a specific portion of Entities.

        Activity

        Guilherme Blanco created issue -
        Guilherme Blanco made changes -
        Field Original Value New Value
        Fix Version/s 2.2-DEV [ 10157 ]
        Hide
        Dominik Liebler added a comment -

        I implemented this (https://github.com/doctrine/doctrine2/pull/104) but forgot to consider also cascade detach. What do you think about adding an additional parameter $entityName to both cascadeDetach() and doDetach()?

        Show
        Dominik Liebler added a comment - I implemented this ( https://github.com/doctrine/doctrine2/pull/104 ) but forgot to consider also cascade detach. What do you think about adding an additional parameter $entityName to both cascadeDetach() and doDetach()?
        Hide
        Benjamin Eberlei added a comment -

        Merged into 2.2-master

        Show
        Benjamin Eberlei added a comment - Merged into 2.2-master
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Alexander added a comment -
        Show
        Alexander added a comment - By merging the new PR: https://github.com/doctrine/doctrine2/pull/105 .
        Benjamin Eberlei made changes -
        Workflow jira [ 12831 ] jira-feedback [ 14955 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 14955 ] jira-feedback2 [ 16819 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 16819 ] jira-feedback3 [ 19072 ]

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

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Guilherme Blanco
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: