1
0
mirror of synced 2025-01-09 18:47:10 +03:00

fixes declaring class

This commit is contained in:
Johannes M. Schmitt 2013-11-02 13:55:19 +01:00
parent 0cd6061fc2
commit 2b2f4894cb

View File

@ -899,7 +899,8 @@ class ClassMetadataInfo implements ClassMetadata
foreach ($this->fieldMappings as $field => $mapping) {
if (isset($mapping['declaredField'])) {
$declaringClass = isset($this->embeddedClasses[$field]['declared']) ? $this->embeddedClasses[$field]['declared'] : $this->name;
$declaringClass = isset($this->embeddedClasses[$mapping['declaredField']]['declared'])
? $this->embeddedClasses[$mapping['declaredField']]['declared'] : $this->name;
$this->reflFields[$field] = new ReflectionEmbeddedProperty(
$reflService->getAccessibleProperty($declaringClass, $mapping['declaredField']),