|
@@ -82,7 +82,7 @@ class Xml extends BaseXml
|
|
|
'separator' => $this->_isAttributeSet($slug, 'separator') ?
|
|
|
$this->_getAttribute($slug, 'separator') : '-',
|
|
|
);
|
|
|
- if ($meta->isIdentifier($field) && !$config['slugs'][$field]['unique']) {
|
|
|
+ if (!$meta->isMappedSuperclass && $meta->isIdentifier($field) && !$config['slugs'][$field]['unique']) {
|
|
|
throw new InvalidMappingException("Identifier field - [{$field}] slug must be unique in order to maintain primary key in class - {$meta->name}");
|
|
|
}
|
|
|
}
|