@ -4,6 +4,11 @@ Automatically validate and save related Active Record models.
[![Latest Stable Version ](https://poser.pugx.org/la-haute-societe/yii2-save-relations-behavior/v/stable )](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [![Total Downloads ](https://poser.pugx.org/la-haute-societe/yii2-save-relations-behavior/downloads )](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [![Latest Unstable Version ](https://poser.pugx.org/la-haute-societe/yii2-save-relations-behavior/v/unstable )](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [![License ](https://poser.pugx.org/la-haute-societe/yii2-save-relations-behavior/license )](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior)
[![Latest Stable Version ](https://poser.pugx.org/la-haute-societe/yii2-save-relations-behavior/v/stable )](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [![Total Downloads ](https://poser.pugx.org/la-haute-societe/yii2-save-relations-behavior/downloads )](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [![Latest Unstable Version ](https://poser.pugx.org/la-haute-societe/yii2-save-relations-behavior/v/unstable )](https://packagist.org/packages/la-haute-societe/yii2-save-relations-behavior) [![License ](https://poser.pugx.org/la-haute-societe/yii2-save-relations-behavior/license )](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.