We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68a7df3 commit 2582b8eCopy full SHA for 2582b8e
src/MailQ/Entities/BaseEntity.php
@@ -69,7 +69,7 @@ private function initMapping($mapping) {
69
if ($property->hasAnnotation($mapping)) {
70
$annotation = $property->getAnnotation($mapping);
71
if ($annotation !== true) {
72
- $this->attributeNames[$annotation->name] = $property->getName();
+ $this->attributeNames[$annotation] = $property->getName();
73
} else {
74
$this->attributeNames[$property->getName()] = $property->getName();
75
}
0 commit comments