@ -4,6 +4,11 @@ Automatically validate and save related Active Record models.
[](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior)
[](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior)
Warning
-------
Please note that at that time, the extension in not compatible with Yii 2.0.14 yet. Stay tuned!
Features
Features
--------
--------
- Both `hasMany()` and `hasOne()` relations are supported
- Both `hasMany()` and `hasOne()` relations are supported
@ -217,4 +222,4 @@ $project->loadRelations(Yii::$app->request->post());
```
```
You can even further simplify the process by adding the `SaveRelationsTrait` to your model.
You can even further simplify the process by adding the `SaveRelationsTrait` to your model.
In that case, a call to the `load()` method will also automatically trigger a call to the `loadRelations()` method by using the same data, so you basically won't have to change your controllers.
In that case, a call to the `load()` method will also automatically trigger a call to the `loadRelations()` method by using the same data, so you basically won't have to change your controllers.