-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Cant use an entity with ReferenceRepository if its name ends with Proxy #417
Comments
Maybe the custom |
I just tried it indeed fixes the issue. I'll make a PR, thx :) |
This library does not have a dependency on |
You prefer simply copying the code of ClassUtils::getRealClass() in this project? |
I guess |
Fixes doctrine#417. This fixes ReferenceRepository::getRealClass() to match with the behaviour of the equiavlent function in doctrine\common ClassUtils::getRealClass().
Fixes doctrine#417. This fixes ReferenceRepository::getRealClass() to match with the behaviour of the equiavlent function in doctrine\common ClassUtils::getRealClass().
Fixes doctrine#417. This fixes ReferenceRepository::getRealClass() to match with the behaviour of the equiavlent function in doctrine\common ClassUtils::getRealClass().
Fixes doctrine#417. This fixes ReferenceRepository::getRealClass() to match with the behaviour of the equiavlent function in doctrine\common ClassUtils::getRealClass().
Since v1.6.0 our tests fail when loading fixtures for entities with a Proxy suffix in their name.
For example with the entity
Path\To\Entities\EntityProxy
we get aDoctrine\Persistence\Mapping\MappingException: Class 'Path\To\Entities\Entity' does not exist
error.I think the bug was introduced in #409. The
getRealClass
removes theProxy
suffix. Maybe the check to remove the suffixProxy
could be made more specific to actual proxies?The text was updated successfully, but these errors were encountered: