Skip to content

Commit 2582b8e

Browse files
committed
Bug fix setting properties via reflection
1 parent 68a7df3 commit 2582b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MailQ/Entities/BaseEntity.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private function initMapping($mapping) {
6969
if ($property->hasAnnotation($mapping)) {
7070
$annotation = $property->getAnnotation($mapping);
7171
if ($annotation !== true) {
72-
$this->attributeNames[$annotation->name] = $property->getName();
72+
$this->attributeNames[$annotation] = $property->getName();
7373
} else {
7474
$this->attributeNames[$property->getName()] = $property->getName();
7575
}

0 commit comments

Comments
 (0)