diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fcfb1e..98a1fb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Yii2 Active Record Save Relations Behavior Change Log +## [1.7.2] +### Fixed +- Fix #45: Newly created Has One relations were not deleted in case owner model validation failed (thx @douglasgsouza) + ## [1.7.1] ### Fixed - Fix #23: Relational data was not loaded for nested relational models (thx @toreonify) diff --git a/README.md b/README.md index c2a9e07..0f35a38 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ Delete related records when the main model is deleted For DBMs with no built in relational constraints, as of 1.5.0 release, one can now specify a relation to be deleted along with the main model. To do so, the relation should be declared with a property `cascadeDelete` set to true. -For example, related `projectLinks` records will automaticaly be deleted when the main model will be deleted: +For example, related `projectLinks` records will automatically be deleted when the main model will be deleted: ```php ...