We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5923189 commit a97d077Copy full SHA for a97d077
1 file changed
src/Entity/EntityDocument.php
@@ -65,4 +65,15 @@ public function isEmpty();
65
*/
66
public function equals( EntityDocument $entity );
67
68
+ /**
69
+ * Returns a deep clone of the entity. The clone must be equal in all details, including the id.
70
+ * Since EntityDocuments are not immutable (at least the id can be set) the method is not
71
+ * allowed to return $this.
72
+ *
73
+ * @since 5.0
74
75
+ * @return self
76
+ */
77
+ public function copy();
78
+
79
}
0 commit comments