use the extended proxy interface in the same namespace #597

Merged
merged 1 commit into from Mar 3, 2013

Conversation

Projects
None yet
6 participants
Contributor

MDrollette commented Mar 1, 2013

Fix for this error:

FatalErrorException: Compile Error: Cannot use Doctrine\Common\Proxy\Proxy as Proxy because the name is already in use in .../vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/ProxyFactory.php line 26

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DDC-2328

Member

stof commented Mar 1, 2013

This change is wrong. The typehint should actually be the interface from Common

Contributor

MDrollette commented Mar 1, 2013

ok, aliased the common interface instead.

Owner

Ocramius commented Mar 1, 2013

@MDrollette what environment are you on? (asking because I never experienced this one)

Member

stof commented Mar 1, 2013

@Ocramius early PHP 5.3 releases are producing this issue

Owner

Ocramius commented Mar 1, 2013

Gotcha. Really weird one...

Member

stof commented Mar 1, 2013

and only if both files are loaded

Contributor

MDrollette commented Mar 1, 2013

I'm using mongodb odm on the same project. Php 5.4. Only got this error
today after a "composer update"
On Mar 1, 2013 12:24 PM, "Marco Pivetta" notifications@github.com wrote:

Gotcha. Really weird one...


Reply to this email directly or view it on GitHubhttps://github.com/doctrine/doctrine2/pull/597#issuecomment-14303522
.

caseyw commented Mar 3, 2013

I just had this occur on the prod env. I performed the alias changes above and that fixed it.

To note, it worked before in dev but when I tried on prod is when it failed.

guilhermeblanco added a commit that referenced this pull request Mar 3, 2013

Merge pull request #597 from MDrollette/fix-proxy-interface
use the extended proxy interface in the same namespace

@guilhermeblanco guilhermeblanco merged commit b30d6df into doctrine:master Mar 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment