1
0
mirror of synced 2025-01-09 10:37:09 +03:00

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:
Menno Holtkamp 2014-03-20 11:08:29 +01:00
parent 9b4ae6d556
commit ef4e73f987

View File

@ -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'])) {