From ff7210a70ec418858bd8f994834d1f1fc9d6b5bc 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:11:23 +0300 Subject: [PATCH] [Docs fix] Factory::_real() instead Factory::object() (#759) Relying on docs I was trying to call such a method as "Factory::object()" but there was no this method. Maybe the "Factory::_real()" was ment --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index b341eb915..e4fd55b43 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -720,7 +720,7 @@ The following assumes the ``Comment`` entity has a many-to-one relationship with $post = PostFactory::createOne(); // instance of Proxy CommentFactory::createOne(['post' => $post]); - CommentFactory::createOne(['post' => $post->object()]); // functionally the same as above + CommentFactory::createOne(['post' => $post->_real()]); // functionally the same as above // Example 2: pre-create Posts and choose a random one PostFactory::createMany(5); // create 5 Posts