Skip to content

Commit

Permalink
feat: drop support for symfony 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Nov 11, 2023
1 parent fa1532f commit 213dadb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/App/DataFixtures/ORM/LoadUserData.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ public function load(ObjectManager $manager): void

$this->addReference('user', $user);

$user = clone $this->getReference('user', User::class);
/* @var User $user2 */
$user2 = clone $this->getReference('user', User::class);

$user->setId(2);
$user2->setId(2);

$manager->persist($user);
$manager->persist($user2);
$manager->flush();
}
}

0 comments on commit 213dadb

Please sign in to comment.