Skip to content
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

1.3.1

28 Oct 10:37
Compare
Choose a tag to compare

Added

  • Enh #19: Support for defining relations through the getRelation method (thx @execut)
  • Enh #21: Better support of partial composite keys (thx @execut)

1.3.0

12 Oct 16:10
Compare
Choose a tag to compare

Added

  • Enh #3: Ability to define validation scenario for related records
  • Enh #7: Exception logging during beforeValidate and afterSave 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: Use of ActiveQueryInterface and BaseActiveRecord to ensure broader DB…

08 Apr 16:16
Compare
Choose a tag to compare

Use of ActiveQueryInterface and BaseActiveRecord to ensure broader DB driver compatibility

1.1.3: Fixed: Relations as array are inserted then deleted instead of being …

04 Mar 15:34
Compare
Choose a tag to compare

Fix for relations as array being inserted then deleted instead of being updated

1.1.2

29 Nov 15:05
Compare
Choose a tag to compare

Fix for empty value assignment on HasMany relations

1.1.1

28 Nov 08:39
Compare
Choose a tag to compare

Fix for bug #12 (Thx @magicaner)

1.1.0: Add SaveRelationsTrait

26 Nov 14:00
Compare
Choose a tag to compare

Add SaveRelationsTrait
Add ability to set HasMany relation using a single object (Thanks to @sankam-nikolya and @k0R73z))

1.0.2

03 Apr 09:53
Compare
Choose a tag to compare

Fix a bug that was preventing new records to be correctly saved for hasMany relations.

1.0.1

02 Apr 15:07
Compare
Choose a tag to compare
1.0.1 Pre-release
Pre-release

Setting null for a named relation is now correctly handled.
A new related model instance was previously generated instead.

1.0.0

26 Mar 17:50
Compare
Choose a tag to compare

First release.