#1277 DDC-3346 DDC-3531 - proper bi-directional association setup
This commit is contained in:
parent
39a8941d1b
commit
186c593058
@ -65,6 +65,8 @@ class DDC3346Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
$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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user