Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-BETA2
-
Component/s: Mapping Drivers
-
Security Level: All
-
Labels:None
Description
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).
This patch fixes the issue for AssociationMapping and ClassMetadata. I'm not sure if there are more properties missing...