Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2701

Collections in originalEntityData gets over written


    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:


      I was trying to use the UnitOfWork::getOriginalEntityData method and i noticed that if there is a collection in that object, it changes in the uow original datas when i change it on my original object

      In my case the collection is ManyToMany unidirectional

      I think this happens because both the uow and the object work with the same reference to the collection
      maybe adding a clone of the collection instead of the real one, i don't know if it is possible

      Thank you for taking a look and for Doctrine!



        Thomas Klein created issue -
        Thomas Klein made changes -
        Field Original Value New Value
        Summary Collections in originalEntityData gets over writter Collections in originalEntityData gets over written

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

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


          • Assignee:
            Benjamin Eberlei
            Thomas Klein
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: