We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0e42ae commit 9379f98Copy full SHA for 9379f98
1 file changed
src/Entity/EntityDocument.php
@@ -47,7 +47,11 @@ public function getId();
47
public function setId( $id );
48
49
/**
50
- * Returns true if the entity has no content. Having an id set does not count as having content.
+ * An entity is considered empty if it does not contain any content that can be removed. Having
51
+ * an ID set never counts as having content.
52
+ *
53
+ * Knowing if an entity is empty is relevant when, for example, moving or merging entities and
54
+ * code wants to make sure all content is transferred from the old to the new entity.
55
*
56
* @since 4.3
57
0 commit comments