fix
This commit is contained in:
parent
85f081f286
commit
830dff92a2
|
@ -44,7 +44,10 @@ class Storage
|
|||
|
||||
protected function getStorageAnnotation($entity, $attribute)
|
||||
{
|
||||
$reflection = new \ReflectionProperty($entity, $attribute);
|
||||
$reflectionEntity = new \ReflectionObject($entity);
|
||||
$reflection = $reflectionEntity->getProperty($attribute);
|
||||
$reflection->setAccessible(true);
|
||||
|
||||
$reader = new AnnotationReader();
|
||||
$annotations = $reader->getPropertyAnnotations($reflection);
|
||||
|
||||
|
|
Loading…
Reference in New Issue