Jira issue originally created by user nicokaiser:
When using a persistent Metadata cache, the serialized ClassMetadata objects are not complete.
This leads to very strange behavior since not all Metadata is loaded in the next request (which uses cached Metadata). The problem is that the **sleep methods of Doctrine\ORM\Mapping\AssociationMapping and Doctrine\ORM\Mapping\ClassMetadata are note complete (missing "namespace", "fetchMode" properties).
Comment created by nicokaiser:
This patch fixes the issue for AssociationMapping and ClassMetadata. I'm not sure if there are more properties missing...
Comment created by romanb:
Ouch, bad oversight. Sorry for that. We do actually have tests for serializing and unserializing the metadata, obviously not enough... will fix it asap.
Fixed in http://github.com/doctrine/doctrine2/commit/db2be55e27c87fa513073b2bf44456f1d1423582 .
Thanks for your help.
Issue was closed with resolution "Fixed"
Comment created by @beberlei:
Should we re-release Beta1? This is pretty serious and might annoy people :-)
Hehe, no its fine. You can easily patch it manually if needed and beta2 is only a few weeks away.
And you can just use HEAD and not the tag, of course :)
Imported 1 attachments from Jira into https://gist.github.com/75feb7482ea76f211d27