diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..fd0ba9c --- /dev/null +++ b/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 \ No newline at end of file diff --git a/src/SaveRelationsBehavior.php b/src/SaveRelationsBehavior.php index ea292c3..609b790 100644 --- a/src/SaveRelationsBehavior.php +++ b/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;