Skip to content

Commit 081e015

Browse files
authored
Replace deprecated Parent with ChildOf in relationships migration guide (#2070)
1 parent bf214ec commit 081e015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release-content/0.16/migration-guides/17398_Relationships_nonfragmenting_onetomany.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- Replace `ChildBuilder` with `ChildSpawnerCommands`.
2-
- Replace calls to `.set_parent(parent_id)` with `.insert(Parent(parent_id))`.
2+
- Replace calls to `.set_parent(parent_id)` with `.insert(ChildOf(parent_id))`.
33
- Replace calls to `.replace_children()` with `.remove::<Children>()` followed by `.add_children()`. Note that you’ll need to manually despawn any children that are not carried over.
44
- Replace calls to `.despawn_recursive()` with `.despawn()`.
55
- Replace calls to `.despawn_descendants()` with `.despawn_related::<Children>()`.

0 commit comments

Comments
 (0)