Browse Source

Updated changelog and readme

tags/1.6.0
Alban Jubert 6 years ago
parent
commit
7d7eb7bf2d
  1. 6
      CHANGELOG.md
  2. 5
      README.md

6
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.

5
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.

Loading…
Cancel
Save