Skip to content

Commit

Permalink
The proxy factory always expects non-null identifier values
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius authored and beberlei committed Jun 10, 2014
1 parent 859465b commit 8b5632c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ protected function setUp()
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);
Expand Down

0 comments on commit 8b5632c

Please sign in to comment.