Skip to content

Commit 5d1ee6f

Browse files
committed
update docs - cascade deletion
1 parent 2485e1b commit 5d1ee6f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/usage/methods.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,14 @@ disables autoload and returns parent attributes
125125

126126
does not change the default behavior logic
127127

128+
## Translation cascade deletion
129+
130+
If the `delete()` method is called it's possible to delete all assigned translations. The eloquent `delete()` method will be used so you will get all events but it creates 1+n queries.
131+
132+
### static disableDeleteTranslationsCascade\(\)
133+
134+
disables cascade deletion on PHP side
135+
136+
### static enableDeleteTranslationsCascade\(\)
137+
138+
enables cascade deletion on PHP side

0 commit comments

Comments
 (0)