Doctrine\Tests\ODM\CouchDB\Functional\Ticket\GH70Test::testIssue PHP Method

testIssue() public method

public testIssue ( )
    public function testIssue()
    {
        $user = new CmsUser();
        $user->username = "foo";
        $user->name = "Foo";
        $user->status = "active";
        $this->dm->persist($user);
        $this->dm->flush();
        $this->dm->clear();
        $user = $this->dm->getReference('Doctrine\\Tests\\Models\\CMS\\CmsUser', $user->id);
        $user->getUsername();
        $user->username = 'bar';
        $this->dm->flush();
        $this->dm->clear();
        $user = $this->dm->find('Doctrine\\Tests\\Models\\CMS\\CmsUser', $user->id);
        $this->assertEquals('bar', $user->username);
    }