Skip to content

Commit

Permalink
Avoid calling merge() (doctrine#9489)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored and n-e-m-a-nj-a committed Mar 29, 2022
1 parent a36bb4a commit bd1cb7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ public function testMatchingCriteriaEndsWithComparison(): void
public function testMatchingCriteriaNullAssocComparison(): void
{
$fixtures = $this->loadFixtureUserEmail();
$user = $this->_em->merge($fixtures[0]);
$user = $this->_em->find(CmsUser::class, $fixtures[0]->id);
$repository = $this->_em->getRepository(CmsUser::class);
$criteriaIsNull = Criteria::create()->where(Criteria::expr()->isNull('email'));
$criteriaEqNull = Criteria::create()->where(Criteria::expr()->eq('email', null));
Expand Down

0 comments on commit bd1cb7d

Please sign in to comment.