From 7d7eb7bf2de4fe28d404a209d9c200a890cedd3f Mon Sep 17 00:00:00 2001 From: Alban Jubert Date: Fri, 31 Aug 2018 13:37:21 +0200 Subject: [PATCH] Updated changelog and readme --- CHANGELOG.md | 6 +++++- README.md | 5 ++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bdd3e60..b75493a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,16 @@ # Yii2 Active Record Save Relations Behavior Change Log -## [1.5.3] (unreleased) +## [1.6.0] ### Fixed - Bug #36: Fix an issue with HasMany relations with composite keys (thx @leandrogehlen) +- Fix for transaction being started during the `beforeValidate` event (thx @leandrogehlen) ### Added - Enh #37: Add a `relationKeyName` property to determine the key used to load relations data. +### Changed +- Removed `isModelTransactional` protected method. Transactions are not started by the behavior any more. + ## [1.5.2] ### Fixed - Fix a regression in Has One saving introduced by #30 fix. diff --git a/README.md b/README.md index 5fdf7fa..1e37c8a 100644 --- a/README.md +++ b/README.md @@ -165,9 +165,8 @@ $project->save(); Attributes of the related model will be massively assigned using the `load() method. So remember to declare the according attributes as safe in the rules of the related model. -> **Notes:** -> - Related models are saved during the EVENT_BEFORE_VALIDATE event of the owner model. Transaction will start at this point according to the transactions() method of the model. -> - Only newly created or changed related models will be saved. +> **Note:** +> Only newly created or changed related models will be saved. > See the PHPUnit tests for more examples.