DDC-561: Metadata caching broken due to incomplete __sleep functions #5070

Closed
doctrinebot opened this Issue Apr 30, 2010 · 8 comments

1 participant

@doctrinebot

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).

@doctrinebot

Comment created by nicokaiser:

This patch fixes the issue for AssociationMapping and ClassMetadata. I'm not sure if there are more properties missing...

@doctrinebot

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.

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot

Comment created by @beberlei:

Should we re-release Beta1? This is pretty serious and might annoy people :-)

@doctrinebot

Comment created by romanb:

Hehe, no its fine. You can easily patch it manually if needed and beta2 is only a few weeks away.

@doctrinebot

Comment created by romanb:

And you can just use HEAD and not the tag, of course :)

@doctrinebot doctrinebot added this to the 2.0-BETA2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment