1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

Update lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php

Allow 'nullable' attribute to be exported for fields, something which already worked in YamlExport. This addition saved me a lot of time during development, not having to manually re-factor after each export.

Don't know why this was missing, maybe it's me who is missing something, so let me know ;)
This commit is contained in:
Cas 2012-09-13 03:43:27 +03:00
parent dacb51fba2
commit de5b20d0bf

View file

@ -180,6 +180,9 @@ class XmlExporter extends AbstractExporter
if (isset($field['columnDefinition'])) {
$fieldXml->addAttribute('column-definition', $field['columnDefinition']);
}
if (isset($field['nullable'])) {
$fieldXml->addAttribute('nullable', $field['nullable'] ? 'true' : 'false');
}
}
}
$orderMap = array(