@@ 402-405 (lines=4) @@ | ||
399 | } |
|
400 | $entityClassName = $mapItem[static::ENTITY_CLASS_NAME]; |
|
401 | ||
402 | if (array_key_exists($entityClassName, $index[$uniqueKey])) { |
|
403 | $errMsg = sprintf('Metadata for entities already exist %s', $mapItem[static::ENTITY_CLASS_NAME]); |
|
404 | throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg); |
|
405 | } |
|
406 | $index[$uniqueKey][$entityClassName] = []; |
|
407 | ||
408 | if (!array_key_exists(static::IDENTIFIERS_MAP, $mapItem)) { |
|
@@ 426-429 (lines=4) @@ | ||
423 | } |
|
424 | $propertyName = $identifierItem[static::PROPERTY_NAME]; |
|
425 | ||
426 | if (array_key_exists($propertyName, $index[$uniqueKey][$entityClassName])) { |
|
427 | $errMsg = sprintf('Metadata for property already exist %s', $propertyName); |
|
428 | throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg); |
|
429 | } |
|
430 | $index[$uniqueKey][$entityClassName][$propertyName] = []; |
|
431 | ||
432 | $modeOriginal = array_key_exists(static::MODE, $identifierItem) ? $identifierItem[static::MODE] : static ::MODE_ROUTER_PARAM; |