Details

    • Type: Task Task
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0-RC2
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      The (deep)copy function of the entity manager is not yet implemented. I assume this is known, but I could not find any open issue on it. This is a pretty powerfull feature once implemented. The function body is completely empty however. Perhaps the tried code could be added so I and others could try and resolve the known issue with this function (recursion limit reached).

        Activity

        Jack van Galen created issue -
        Hide
        Benjamin Eberlei added a comment -

        There was never code written for that function. I don't think its too problematic that this is missing. You only have to implement __clone (and do so safely as the docs/cookbook describes) and then pass this structure to persist. Optionally making use of cascade persist.

        Show
        Benjamin Eberlei added a comment - There was never code written for that function. I don't think its too problematic that this is missing. You only have to implement __clone (and do so safely as the docs/cookbook describes) and then pass this structure to persist. Optionally making use of cascade persist.
        Hide
        Marcus Stöhr added a comment -

        I recently came accross this. Is there any best practice if you have to clone an entity who has several associations? I thought of grabbing them and clone them one by one. Or is there a more convenient way?

        Show
        Marcus Stöhr added a comment - I recently came accross this. Is there any best practice if you have to clone an entity who has several associations? I thought of grabbing them and clone them one by one. Or is there a more convenient way?
        Hide
        Benjamin Eberlei added a comment - - edited

        no, except implementing __clone and doing it there.

        Show
        Benjamin Eberlei added a comment - - edited no, except implementing __clone and doing it there.
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12231 ] jira-feedback [ 13890 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13890 ] jira-feedback2 [ 15754 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15754 ] jira-feedback3 [ 18011 ]

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

          People

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

            Dates

            • Created:
              Updated: