diff --git a/docs/index.rst b/docs/index.rst index 8345f25..734d6be 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -169,7 +169,7 @@ exact same object via its name. { $userGroup = new Group('administrators'); // this reference returns the User object created in UserFixtures - $userGroup->addUser($this->getReference(UserFixtures::ADMIN_USER_REFERENCE)); + $userGroup->addUser($this->getReference(UserFixtures::ADMIN_USER_REFERENCE, User::class)); $manager->persist($userGroup); $manager->flush();