From 186c59305894b5969c9eb7c62ddbbaef55574a0f Mon Sep 17 00:00:00 2001
From: Marco Pivetta <ocramius@gmail.com>
Date: Fri, 23 Jan 2015 16:23:11 +0100
Subject: [PATCH] #1277 DDC-3346 DDC-3531 - proper bi-directional association
 setup

---
 .../Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php  | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php
index 7aca1866a..c7b89813a 100644
--- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php
+++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php
@@ -62,9 +62,11 @@ class DDC3346Test extends \Doctrine\Tests\OrmFunctionalTestCase
         $article1 = new DDC3346Article();
         $article2 = new DDC3346Article();
 
-        $user->username = 'bwoogy';
-        $article1->user = $user;
-        $article2->user = $user;
+        $user->username   = 'bwoogy';
+        $article1->user   = $user;
+        $article2->user   = $user;
+        $user->articles[] = $article1;
+        $user->articles[] = $article2;
 
         $this->_em->persist($user);
         $this->_em->persist($article1);