|
|
@ -216,14 +216,14 @@ class Dto2DataConverter |
|
|
|
|
|
|
|
|
|
|
|
private function getValue(object $object, \ReflectionProperty $property) |
|
|
|
private function getValue(object $object, \ReflectionProperty $property) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!$property->isInitialized($object)) { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!$property->isPublic()) { |
|
|
|
if (!$property->isPublic()) { |
|
|
|
$property->setAccessible(true); |
|
|
|
$property->setAccessible(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!$property->isInitialized($object)) { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$value = $property->getValue($object); |
|
|
|
$value = $property->getValue($object); |
|
|
|
|
|
|
|
|
|
|
|
if (!$property->isPublic()) { |
|
|
|
if (!$property->isPublic()) { |
|
|
|