diff --git a/src/php/Metadata/PropertyMetadataFactory.php b/src/php/Metadata/PropertyMetadataFactory.php
index a184aef168a0a8313417e45ce84a1bf7ed7d72f8..596b4e9dbde5200da2cc852f6ac795bc4d3d26c6 100644
--- a/src/php/Metadata/PropertyMetadataFactory.php
+++ b/src/php/Metadata/PropertyMetadataFactory.php
@@ -196,7 +196,7 @@ class PropertyMetadataFactory
 
             $propertyMeta = $this->propertyMetadataFactory->create($class->getFullName(), $propertyName);
 
-            if (!$propertyMeta->getType() || $propertyMeta->isChildInherited()) {
+            if (!$propertyMeta->getType() || $propertyMeta->hasChildInherited()) {
                 continue;
             }