From 7a305475e35930749e15bad0d060f8a917b1992f Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 29 Apr 2014 13:25:17 +0200 Subject: [PATCH] The proxy factory always expects non-null identifier values --- .../Doctrine/Tests/ORM/Functional/ProxiesLikeEntitiesTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/ProxiesLikeEntitiesTest.php b/tests/Doctrine/Tests/ORM/Functional/ProxiesLikeEntitiesTest.php index 2ca5cc289..592706588 100644 --- a/tests/Doctrine/Tests/ORM/Functional/ProxiesLikeEntitiesTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/ProxiesLikeEntitiesTest.php @@ -48,8 +48,9 @@ class ProxiesLikeEntitiesTest extends \Doctrine\Tests\OrmFunctionalTestCase public function testPersistUpdate() { // Considering case (a) - $proxy = $this->_em->getProxyFactory()->getProxy('Doctrine\Tests\Models\CMS\CmsUser', array('id' => null)); + $proxy = $this->_em->getProxyFactory()->getProxy('Doctrine\Tests\Models\CMS\CmsUser', array('id' => 123)); $proxy->__isInitialized__ = true; + $proxy->id = null; $proxy->username = 'ocra'; $proxy->name = 'Marco'; $this->_em->persist($proxy);