Minor fix

This commit is contained in:
Guilhem N 2019-02-13 21:13:17 +01:00 committed by GitHub
parent b171794cce
commit 0414277d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,8 +102,6 @@ class JMSModelDescriber implements ModelDescriberInterface, ModelRegistryAwareIn
try { try {
if (true === $isJmsV1 && property_exists($item, 'reflection') && null !== $item->reflection) { if (true === $isJmsV1 && property_exists($item, 'reflection') && null !== $item->reflection) {
$reflection = $item->reflection; $reflection = $item->reflection;
} elseif ($item instanceof VirtualProperty) {
$reflection = new \ReflectionProperty($item->class, $item->name);
} else { } else {
$reflection = new \ReflectionProperty($item->class, $item->name); $reflection = new \ReflectionProperty($item->class, $item->name);
} }