Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/app/cache/dev/doctrine/orm/Proxies/__CG__EntityClass.php does not exist (generateProxyClasses in 2.2.1) #47

Closed
hpmewes opened this issue Mar 29, 2012 · 2 comments

Comments

@hpmewes
Copy link

hpmewes commented Mar 29, 2012

Theres a Problem on generating Proxie Classes in Version 2.2.1.
In DoctrineBundle on Line 74 you compare the classes with the origin Class Name. But the Origin Class Name has the Prefix CG.

if ($name == $originalClassName) {
    $em->getProxyFactory()->generateProxyClasses(array($class));
}

echo $name; > 'SomeEntityClass'
echo $originalClassName; > __CG__SomeEntityClass

This Prefix must be replaced and the Problem is solved.

if ($name == str_replace('__CG__', '', $originalClassName)) {
    $em->getProxyFactory()->generateProxyClasses(array($class));
}
@robocoder
Copy link
Contributor

This is the commit from the Symfony 2.0 repo:

symfony/symfony@50cb486#src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php

@stof
Copy link
Member

stof commented Sep 7, 2012

This has been fixed 4 months ago in 689180c

@stof stof closed this as completed Sep 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants