This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
Releases: la-haute-societe/yii2-save-relations-behavior
Releases · la-haute-societe/yii2-save-relations-behavior
1.3.1
1.3.0
Added
- Enh #3: Ability to define validation scenario for related records
- Enh #7: Exception logging during
beforeValidate
andafterSave
events. - More test cases
Fixed
- False positive
testLoadRelationsShouldSucceed
test case
Changed
- afterSave throw exception if a related record fail to be saved. In that case, a database rollback is triggered (when relevant) and an error is attached to the according relation attribute
- related record are now correctly updated based on there primary key (Thanks to @DD174)
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0: Add SaveRelationsTrait
Add SaveRelationsTrait
Add ability to set HasMany relation using a single object (Thanks to @sankam-nikolya and @k0R73z))