[DDC-1668] bug with reading cached annotations in Annotation driver Created: 28/Feb/12 Updated: 03/Mar/12 Resolved: 03/Mar/12
|Project:||Doctrine 2 - ORM|
|Reporter:||victor Velkov||Assignee:||Benjamin Eberlei|
I had a problem with Class Table Inheritance on first call of a child entity it was working but if call another child in another instance it was not joining with the parent class. After some debugging i found the problem it was not detecting the annotation that is a parent entity to be joined in Doctrine\ORM\Mapping\Driver\AnnotationDriver when the function on line 479 isTransient($className) is called. So after more debugging i found the problem it is in
Looks like that after it is cached in and then the cache is read when it returns the array of annotations for the entity class the keys are returned as strings not as integer and if the key is '0' the the value that is_int returns is NULL so the check
fails and it does not foreach the the array of annotations.
I am using APC cache.
|Comment by Benjamin Eberlei [ 03/Mar/12 ]|