1
0
mirror of synced 2025-01-18 22:41:43 +03:00

#1277 DDC-3346 DDC-3531 - proper bi-directional association setup

This commit is contained in:
Marco Pivetta 2015-01-23 16:23:11 +01:00
parent 39a8941d1b
commit 186c593058

View File

@ -62,9 +62,11 @@ class DDC3346Test extends \Doctrine\Tests\OrmFunctionalTestCase
$article1 = new DDC3346Article(); $article1 = new DDC3346Article();
$article2 = new DDC3346Article(); $article2 = new DDC3346Article();
$user->username = 'bwoogy'; $user->username = 'bwoogy';
$article1->user = $user; $article1->user = $user;
$article2->user = $user; $article2->user = $user;
$user->articles[] = $article1;
$user->articles[] = $article2;
$this->_em->persist($user); $this->_em->persist($user);
$this->_em->persist($article1); $this->_em->persist($article1);