-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Doctrine Proxy Class Serialization #34
Comments
Strangely removing the @OverRide comment from the ClassMetadataInfo class results in a timeout. |
upgrade Doctrine Common to the 2.1.x branch instead of the 2.1.1 release. This annotation is now ignored by default |
As discussed on IRC, the main problem here is that Doctrine generates a proxy object to allow a relation to be lazy-loaded. The possible solutions to this are:
I'll leave this ticket open for reference, not sure if we can find, or need a better solution. |
Thanks for checking this out guys. |
Hi, |
I managed to solve it by specifing a exclusion_policy: ALL for my Proxy class (FooBundleEntityUserProxy). |
Proxies should now be initialized automatically thanks to @yethee. Please try out the latest version. |
Hey guys,
I think I've setup the bundle correctly using the instructions in the FOS Rest bundle documentation. However when viewing either .xml or .json I get the following error:
[Semantical Error] The annotation "@OverRide" in method Doctrine\ORM\Mapping\ClassMetadataInfo::_validateAndCompleteOneToOneMapping() was never imported.
I'm using Symfony2 Standard with the master branch of the metadata bundle.
Here's my full config.yml, stacktrace and deps files: https://gist.github.com/1240315
Any help would be appreciated.
Cheers Leevi
The text was updated successfully, but these errors were encountered: