You've already forked symfony-storage
fix
This commit is contained in:
@@ -44,7 +44,10 @@ class Storage
|
|||||||
|
|
||||||
protected function getStorageAnnotation($entity, $attribute)
|
protected function getStorageAnnotation($entity, $attribute)
|
||||||
{
|
{
|
||||||
$reflection = new \ReflectionProperty($entity, $attribute);
|
$reflectionEntity = new \ReflectionObject($entity);
|
||||||
|
$reflection = $reflectionEntity->getProperty($attribute);
|
||||||
|
$reflection->setAccessible(true);
|
||||||
|
|
||||||
$reader = new AnnotationReader();
|
$reader = new AnnotationReader();
|
||||||
$annotations = $reader->getPropertyAnnotations($reflection);
|
$annotations = $reader->getPropertyAnnotations($reflection);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user