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 (!isset($this->classes[$classMetadata->getName()])) {
64
+
returnfalse;
65
+
}
76
66
77
-
if (isset($data['groups'])) {
78
-
if (!is_array($data['groups'])) {
79
-
thrownewMappingException('The "groups" key must be an array of strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName());
thrownewMappingException('Group names must be strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName());
85
-
}
69
+
if (isset($yaml['attributes']) && is_array($yaml['attributes'])) {
thrownewMappingException(sprintf('The "groups" key must be an array of strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName()));
83
+
}
84
+
85
+
foreach ($data['groups'] as$group) {
86
+
if (!is_string($group)) {
87
+
thrownewMappingException(sprintf('Group names must be strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName()));
0 commit comments