We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 790abba commit 9d34f61Copy full SHA for 9d34f61
1 file changed
src/Vivait/StringGeneratorBundle/EventListener/GeneratorListener.php
@@ -72,7 +72,8 @@ public function prePersist(LifecycleEventArgs $args)
72
}
73
} while (($currentObject = $currentObject->getParentClass()) && (false !== $currentObject));
74
75
- foreach ($object->getProperties() as $property) {
+ /** @var \ReflectionProperty[] $property */
76
+ foreach ($properties as $property) {
77
foreach ($this->reader->getPropertyAnnotations($property) as $annotation) {
78
if ($annotation instanceof GeneratorAnnotation) {
79
0 commit comments