From d192c4a8955a91617492a0374dd7848023bdf6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D0=B8=D0=B9?= Date: Tue, 17 Dec 2024 20:13:45 +0300 Subject: [PATCH] [Docs fix] Proxy::_save() instead of Proxy::save() (#760) Changed an incorrect function name in the docs $post->save(); // persist the Post to $post->_save(); // persist the Post --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index e4fd55b43..8d423aec1 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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