Skip to content

Commit

Permalink
#6499 #6533 calibrating test so that the association is populated aft…
Browse files Browse the repository at this point in the history
…er persistence in some edge cases
  • Loading branch information
Ocramius committed Aug 11, 2017
1 parent 25829ea commit 166c581
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC6499Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ protected function tearDown() : void
public function testIssue() : void
{
$b = new DDC6499B();
$a = new DDC6499A($b);
$a = new DDC6499A();

$this->_em->persist($a);

$a->b = $b;

$this->_em->persist($b);

$this->_em->flush();
Expand All @@ -58,7 +61,9 @@ public function testIssue() : void
public function testIssueReversed() : void
{
$b = new DDC6499B();
$a = new DDC6499A($b);
$a = new DDC6499A();

$a->b = $b;

$this->_em->persist($b);
$this->_em->persist($a);
Expand All @@ -78,11 +83,6 @@ class DDC6499A

/** @JoinColumn(nullable=false) @OneToOne(targetEntity=DDC6499B::class) */
public $b;

public function __construct(DDC6499B $b)
{
$this->b = $b;
}
}

/** @Entity */
Expand Down

0 comments on commit 166c581

Please sign in to comment.