We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c77179 commit d15ea75Copy full SHA for d15ea75
src/Attribute/Collection.php
@@ -21,6 +21,10 @@ public function add($value, &$object)
21
//only for creation requests
22
if ($object->id == null) {
23
foreach ($value as $key => $v) {
24
+ $subnode = $this->getSubNode($key);
25
+ if(!$subnode) {
26
+ throw (new SCIMException(sprintf('Unknown subnode attribute "%s"', $key)))->setCode(400);
27
+ }
28
$this->getSubNode($key)->add($v, $object);
29
}
30
} else {
0 commit comments