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