Browse Source

Added changelog

tags/1.2.0
Alban Jubert 8 years ago
parent
commit
5087c81135
  1. 36
      CHANGELOG.md
  2. 1
      src/SaveRelationsBehavior.php

36
CHANGELOG.md

@ -0,0 +1,36 @@
# Yii2 Active Record Save Relations Behavior Change Log
## [Unreleased]
### Changed
- Use of `ActiveQueryInterface` and `BaseActiveRecord` to ensure broader DB driver compatibility
## [1.1.3] 2017-03-04
### Fixed
- Bug #13: Relations as array were inserted then deleted instead of being updated
## [1.1.2] 2016-11-29
### Fixed
- Fix for empty value assignment on HasMany relations
## [1.1.1] 2016-11-28
### Fixed
- Bug #12: Nesting level too deep – recursive dependency error during object comparing (Thx @magicaner)
## [1.1.0] 2016-04-03
### Added
- SaveRelationsTrait to load related data using the `load()` method
- ability to set HasMany relation using a single object (Thanks to @sankam-nikolya and @k0R73z))
## [1.0.2] 2016-04-03
### Fixed
- Fix a bug that was preventing new records to be correctly saved for hasMany relations.
## [1.0.1] 2016-04-02
### Fixed
- Setting null for a named relation is now correctly handled.
- A new related model instance was previously generated instead.
## [1.0.0] 2016-03-26
Initial release

1
src/SaveRelationsBehavior.php

@ -8,7 +8,6 @@ use yii\base\Behavior;
use yii\base\Exception;
use yii\base\ModelEvent;
use yii\db\ActiveQueryInterface;
use yii\db\ActiveQueryInterface;
use yii\db\BaseActiveRecord;
use yii\db\Transaction;
use yii\helpers\ArrayHelper;

Loading…
Cancel
Save