From 1e721438e8d3b2e2e3efbd6a7bf4772ab3c93796 Mon Sep 17 00:00:00 2001 From: Maris Fisher Date: Thu, 30 Jan 2020 09:00:11 +0000 Subject: [PATCH] :pencil: Fixed typo --- docs/development/services/model/relating-models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development/services/model/relating-models.md b/docs/development/services/model/relating-models.md index 3940dce7b..22c4a9949 100755 --- a/docs/development/services/model/relating-models.md +++ b/docs/development/services/model/relating-models.md @@ -123,7 +123,7 @@ Here `left` describes the pivot table key connecting the current model and `righ ## Inverse Relationships -All relationships must be declared in both associated models. Thif tmproves code consistency and predictability by allowing both sides of the relationship to be altered without creating orphaned objects. This is particularly important when creating parent-child relationships that cascade their deletions automatically. +All relationships must be declared in both associated models. This improves code consistency and predictability by allowing both sides of the relationship to be altered without creating orphaned objects. This is particularly important when creating parent-child relationships that cascade their deletions automatically. When relating to models that are not your own, this becomes problematic since your addon cannot directly add relationships to native models. To get around this problem and to allow for native events to cascade to your models, you must declare all external dependencies in your `addon.setup.php` file: