Use boolean values for 'unique' attribute
As defined in: https://github.com/doctrine/doctrine2/blob/master/doctrine-mapping.xsd#L294 Same as 'nullable' attribute. It was being exported as a "1" for TRUE and "0" for false
This commit is contained in:
parent
9b4ae6d556
commit
ef4e73f987
@ -193,7 +193,7 @@ class XmlExporter extends AbstractExporter
|
||||
}
|
||||
|
||||
if (isset($field['unique']) && $field['unique']) {
|
||||
$fieldXml->addAttribute('unique', $field['unique']);
|
||||
$fieldXml->addAttribute('unique', $field['unique'] ? 'true' : 'false');
|
||||
}
|
||||
|
||||
if (isset($field['options'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user