Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

[DCOM-96] proxy generation as of doctrine/common#168 #52

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Ocramius
Copy link
Member

See doctrine/common#168, doctrine/orm#406 and doctrine/mongodb-odm#445

Merging this means bumping requirement of doctrine/common to >=2.4.

@@ -57,8 +57,11 @@ public function testProxyFactorySetsProxyMetadata()
$proxy = $this->dm->getReference($this->type, 1);

$proxyClass = get_class($proxy);
$this->assertTrue($this->dm->getClassMetadataFactory()->hasMetadataFor($proxyClass), "Proxy class '" . $proxyClass . "' should be registered as metadata.");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already happens in the class metadata factory

@@ -43,7 +43,14 @@ public function testSaveWithAssociation()
{
$article = $this->dm->find('Doctrine\Tests\Models\CMS\CmsArticle', $this->articleId);
$this->assertInstanceOf('Doctrine\Tests\Models\CMS\CmsUser', $article->user);
$this->assertNull($article->user->username, 'CmsUser is a proxy, username is NULL through public access');
$this->assertInstanceOf('Doctrine\ODM\CouchDB\Proxy\Proxy', $article->user);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fails also on master, no idea why

@Ocramius Ocramius mentioned this pull request Apr 26, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant