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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
>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.