mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-622: Caching ClassMetadata of an joined subclass with id generator sequence with apc and xml mapping #767
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 (Jun 2, 2010).
Jira issue originally created by user needle:
Apparently apc is having issues when storing an ClassMetadata object with sequenceGeneratorDefinition. When loading the object, apc seems to have lost this only field. I've just tested it with xml mapping.
Here is a fail test casse :
SecondClass and ThirdClass inherit from FirstClass
SQL
Xml mapping :
Php classes :
First scipt to execute so that Doctrine store FirstClass metadata in cache :
and then we execute the last script :
Obviously, Doctrine loads FirstClass Metadata from the cache and fails to create ThirdClass Metadata :
@doctrinebot commented on GitHub (Jun 6, 2010):
Comment created by needle:
With a little more debug I found that juste doing :
On _doSave() method from ApcCache object make me lost the sequenceGeneratorDefinition field...
Any idea ?
@doctrinebot commented on GitHub (Jun 6, 2010):
Comment created by romanb:
Yes, its a bug in ClassMetadata#**sleep. Will be fixed soon. Thanks for reporting.
@doctrinebot commented on GitHub (Jun 7, 2010):
Comment created by romanb:
Thanks. This is fixed now.
@doctrinebot commented on GitHub (Jun 7, 2010):
Issue was closed with resolution "Fixed"