Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个有一些关系的实体。我需要用关系克隆这个实体。如何克隆具有关系的 Doctrine 2 实体?
Benjamin Eberlei 之前回答过这个问题:
您可以实现 __clone() 并在用户空间中正确处理副本。
来源:https ://groups.google.com/group/doctrine-user/browse_thread/thread/36edab6b2ac39204/1a39a8b0eaa213a8