Skip to content

Commit

Permalink
[Docs fix] Proxy::_save() instead of Proxy::save() (#760)
Browse files Browse the repository at this point in the history
Changed an incorrect function name in the docs

$post->save(); // persist the Post 
to
$post->_save(); // persist the Post
  • Loading branch information
GrinWay authored Dec 17, 2024
1 parent ff7210a commit d192c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ still wrapped in a ``Proxy`` to optionally save later.

$post = PostFactory::new()->withoutPersisting()->create(); // returns Post|Proxy
$post->setTitle('something else'); // do something with object
$post->save(); // persist the Post (save() is a method on Proxy)
$post->_save(); // persist the Post (save() is a method on Proxy)

$post = PostFactory::new()->withoutPersisting()->create()->object(); // actual Post object

Expand Down

0 comments on commit d192c4a

Please sign in to comment.