Menu

ManyToMany?

Help
2007-02-13
2013-04-25
  • Andrey Chaschev

    Andrey Chaschev - 2007-02-13

    Hi there! Nice util you're creating!

    A quick dummy question: are ManyToMany relationships supported for cloning?

    Here is the problem with ManyToMany: consider users owning some documents (many to many relationship). I need to save a graph of objects associated with some of the users. If I simply perform full deep cloning, I will probably copy the full DB (documents owned by the user, users owning documents owned by the user, et cetera).

    No need in detailed question if it is supported...

    Thx.

     
    • Joe D. Velopar

      Joe D. Velopar - 2007-02-13

      >are ManyToMany relationships supported for cloning?

      The short answer is yes.

      >If I simply perform full deep cloning, I will probably copy the full DB

      Indeed if the transitive closure resulted in the entire DB, a deep clone would result in copying the full DB.  In general, one needs to exercise caution with deep clone.

       

Log in to post a comment.