1
0
mirror of synced 2025-02-09 08:49:26 +03:00

#6499 #6533 calibrating test so that the association is populated after persistence in some edge cases

This commit is contained in:
Marco Pivetta 2017-08-11 22:10:02 +02:00
parent 25829ea450
commit 166c5816b6
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -44,9 +44,12 @@ class DDC6499Test extends OrmFunctionalTestCase
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();
@ -58,7 +61,9 @@ class DDC6499Test extends OrmFunctionalTestCase
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);
@ -78,11 +83,6 @@ class DDC6499A
/** @JoinColumn(nullable=false) @OneToOne(targetEntity=DDC6499B::class) */
public $b;
public function __construct(DDC6499B $b)
{
$this->b = $b;
}
}
/** @Entity */