From a638154046c09872ff96a8daa064eba1a5b625f0 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Mon, 4 Jul 2011 20:59:42 +0200 Subject: [PATCH] Update tests --- .../ORM/Functional/Ticket/DDC1238Test.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1238Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1238Test.php index f2475c764..63b986bd7 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1238Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1238Test.php @@ -35,11 +35,17 @@ class DDC1238Test extends \Doctrine\Tests\OrmFunctionalTestCase $this->_em->flush(); $this->_em->clear(); - $user = $this->_em->getReference(__NAMESPACE__ . '\\DDC1238User', $user->getId()); + $userId = $user->getId(); $this->_em->clear(); + $user = $this->_em->getReference(__NAMESPACE__ . '\\DDC1238User', $userId); + $this->_em->clear(); + #$user2 = $this->_em->getReference(__NAMESPACE__ . '\\DDC1238User', $userId); + + xdebug_start_trace("/tmp/doctrine"); $userId = $user->getId(); + $this->assertNotSame($user, $user2); $this->assertNull($userId, "This proxy is unitialized and was cleared from the identity map, so no loading possible."); } } @@ -66,18 +72,10 @@ abstract class DDC1238UserSuperClass } } -/** - * nothing - */ -abstract class DDC1238UserBase extends DDC1238UserSuperClass -{ - -} - /** * @Entity */ -class DDC1238User extends DDC1238UserBase +class DDC1238User extends DDC1238UserSuperClass { /** @Id @GeneratedValue @Column(type="integer") */ private $id;