Merge pull request #434 from ahilles107/patch-2

Don't parse custom properties as classes.
This commit is contained in:
William Durand 2014-07-14 21:24:21 +02:00
commit c03d35bee4

View File

@ -150,6 +150,11 @@ class JmsMetadataParser implements ParserInterface, PostParserInterface
}
}
// we can use type property also for custom handlers, then we don't have here real class name
if (!class_exists($dataType['class'])) {
continue;
}
// if class already parsed, continue, to avoid infinite recursion
if (in_array($dataType['class'], $visited)) {
continue;