Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 186c593

Browse files
committed
doctrine#1277 DDC-3346 DDC-3531 - proper bi-directional association setup
1 parent 39a8941 commit 186c593

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ private function loadAuthorFixture()
6262
$article1 = new DDC3346Article();
6363
$article2 = new DDC3346Article();
6464

65-
$user->username = 'bwoogy';
66-
$article1->user = $user;
67-
$article2->user = $user;
65+
$user->username = 'bwoogy';
66+
$article1->user = $user;
67+
$article2->user = $user;
68+
$user->articles[] = $article1;
69+
$user->articles[] = $article2;
6870

6971
$this->_em->persist($user);
7072
$this->_em->persist($article1);

0 commit comments

Comments
 (0)