mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(UniqueConstraint) unique added fields
This commit is contained in:
parent
64019ba8b6
commit
b2bd051c4a
@ -59,7 +59,7 @@ class UniqueConstraint extends BaseConstraint
|
||||
if ($containerNode != null && $level == 2) {
|
||||
// collect (additional) key fields
|
||||
$keyFields = array($nodeName);
|
||||
$keyFields = array_merge($keyFields, $this->getOptionValueList('addFields'));
|
||||
$keyFields = array_unique(array_merge($keyFields, $this->getOptionValueList('addFields')));
|
||||
// calculate the key for this node
|
||||
$nodeKey = '';
|
||||
foreach ($keyFields as $field) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user