Skip to content

Commit 7ac32b4

Browse files
committed
Update README.md
1 parent ce1c454 commit 7ac32b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ It takes a normal array of POST. This is the example
3434
// sample at controller
3535
//$_POST['ParentClass'] = ['attr1' => 'value1','attr2' => 'value2'];
3636
//$_POST['RelatedClass'][0] = ['attr1' => 'value1','attr2' => 'value2'];
37-
if($model->loadRelated(Yii:$app->request->post()) && $model->saveRelated()){
37+
if($model->loadAll(Yii:$app->request->post()) && $model->saveAll()){
3838
return $this->redirect(['view', 'id' => $model->id, 'created' => $model->created]);
3939
}
4040
```

0 commit comments

Comments
 (0)