mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-561: Metadata caching broken due to incomplete __sleep functions #695
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 30, 2010).
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 commented on GitHub (Apr 30, 2010):
Comment created by nicokaiser:
This patch fixes the issue for AssociationMapping and ClassMetadata. I'm not sure if there are more properties missing...
@doctrinebot commented on GitHub (Apr 30, 2010):
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 commented on GitHub (Apr 30, 2010):
Comment created by romanb:
Fixed in
db2be55e27.Thanks for your help.
@doctrinebot commented on GitHub (Apr 30, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Apr 30, 2010):
Comment created by @beberlei:
Should we re-release Beta1? This is pretty serious and might annoy people :-)
@doctrinebot commented on GitHub (Apr 30, 2010):
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 commented on GitHub (Apr 30, 2010):
Comment created by romanb:
And you can just use HEAD and not the tag, of course :)
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/75feb7482ea76f211d27