Skip to content

Commit

Permalink
Merge pull request #484 from doctrine/3.7.x-merge-up-into-4.0.x_sAXZ3QlL
Browse files Browse the repository at this point in the history
Merge release 3.7.1 into 4.0.x
  • Loading branch information
greg0ire authored Dec 5, 2024
2 parents ebfb3a5 + bd59519 commit 9018531
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 @@ -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();
Expand Down

0 comments on commit 9018531

Please sign in to comment.