|
@@ 426-428 (lines=3) @@
|
| 423 |
|
$fieldDefinition->fieldTypeIdentifier, $contentType->identifier, $field->value |
| 424 |
|
); |
| 425 |
|
if (is_array($hashValue) ) { |
| 426 |
|
if (count($parts) == 2) { |
| 427 |
|
throw new \InvalidArgumentException('Content Manager does not support setting references for attribute ' . $reference['attribute'] . ': the given attribute has an array value'); |
| 428 |
|
} |
| 429 |
|
$value = JmesPath::search(implode('.', array_slice($parts, 2)), $hashValue); |
| 430 |
|
} else { |
| 431 |
|
if (count($parts) > 2) { |
|
@@ 430-435 (lines=6) @@
|
| 427 |
|
throw new \InvalidArgumentException('Content Manager does not support setting references for attribute ' . $reference['attribute'] . ': the given attribute has an array value'); |
| 428 |
|
} |
| 429 |
|
$value = JmesPath::search(implode('.', array_slice($parts, 2)), $hashValue); |
| 430 |
|
} else { |
| 431 |
|
if (count($parts) > 2) { |
| 432 |
|
throw new \InvalidArgumentException('Content Manager does not support setting references for attribute ' . $reference['attribute'] . ': the given attribute has a scalar value'); |
| 433 |
|
} |
| 434 |
|
$value = $hashValue; |
| 435 |
|
} |
| 436 |
|
break; |
| 437 |
|
} |
| 438 |
|
|