We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce1c454 commit 7ac32b4Copy full SHA for 7ac32b4
README.md
@@ -34,7 +34,7 @@ It takes a normal array of POST. This is the example
34
// sample at controller
35
//$_POST['ParentClass'] = ['attr1' => 'value1','attr2' => 'value2'];
36
//$_POST['RelatedClass'][0] = ['attr1' => 'value1','attr2' => 'value2'];
37
-if($model->loadRelated(Yii:$app->request->post()) && $model->saveRelated()){
+if($model->loadAll(Yii:$app->request->post()) && $model->saveAll()){
38
return $this->redirect(['view', 'id' => $model->id, 'created' => $model->created]);
39
}
40
```
0 commit comments