mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-06 02:49:31 -06:00
docs fixtypo
[skip ci]
This commit is contained in:
@@ -1093,7 +1093,7 @@ If you need to save multiple related models, you may use the `saveMany` method:
|
||||
|
||||
post->comments()->saveMany({
|
||||
{{"message", "A new comment."}},
|
||||
{{'message", "Another new comment."}},
|
||||
{{"message", "Another new comment."}},
|
||||
});
|
||||
|
||||
The `save` and `saveMany` methods will not add the new models to any in-memory relationships that are already loaded onto the parent model. If you plan on accessing the relationship after using the `save` or `saveMany` methods, you may wish to use the `refresh` method to reload the model and its relationships:
|
||||
|
||||
Reference in New Issue
Block a user