@@ 287-295 (lines=9) @@ | ||
284 | $keyProperties = $resourceType->getKeyProperties(); |
|
285 | $keyPropertiesCount = count($keyProperties); |
|
286 | if (!empty($this->namedValues)) { |
|
287 | if (count($this->namedValues) != $keyPropertiesCount) { |
|
288 | throw ODataException::createSyntaxError( |
|
289 | Messages::keyDescriptorKeyCountNotMatching( |
|
290 | $segmentAsString, |
|
291 | $keyPropertiesCount, |
|
292 | count($this->namedValues) |
|
293 | ) |
|
294 | ); |
|
295 | } |
|
296 | ||
297 | foreach ($keyProperties as $keyName => $keyResourceProperty) { |
|
298 | if (!array_key_exists($keyName, $this->namedValues)) { |
|
@@ 330-338 (lines=9) @@ | ||
327 | $this->validatedNamedValues[$keyName] = $this->namedValues[$keyName]; |
|
328 | } |
|
329 | } else { |
|
330 | if (count($this->positionalValues) != $keyPropertiesCount) { |
|
331 | throw ODataException::createSyntaxError( |
|
332 | Messages::keyDescriptorKeyCountNotMatching( |
|
333 | $segmentAsString, |
|
334 | $keyPropertiesCount, |
|
335 | count($this->positionalValues) |
|
336 | ) |
|
337 | ); |
|
338 | } |
|
339 | ||
340 | $i = 0; |
|
341 | foreach ($keyProperties as $keyName => $keyResourceProperty) { |