You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (preg_match('/^(get|is)(.+)$/i', $method->name, $matches)) {
74
+
if (preg_match('/^(get|is|has|set)(.+)$/i', $method->name, $matches)) {
75
75
$attributeName = lcfirst($matches[2]);
76
76
77
77
if (isset($attributesMetadata[$attributeName])) {
@@ -85,7 +85,7 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
85
85
$attributeMetadata->addGroup($group);
86
86
}
87
87
} else {
88
-
thrownewMappingException(sprintf('Groups on "%s::%s" cannot be added. Groups can only be added on methods beginning with "get"or "is".', $className, $method->name));
88
+
thrownewMappingException(sprintf('Groups on "%s::%s" cannot be added. Groups can only be added on methods beginning with "get", "is", "has" or "set".', $className, $method->name));
0 commit comments