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:
parent
dacb51fba2
commit
de5b20d0bf
1 changed files with 3 additions and 0 deletions
|
@ -180,6 +180,9 @@ class XmlExporter extends AbstractExporter
|
||||||
if (isset($field['columnDefinition'])) {
|
if (isset($field['columnDefinition'])) {
|
||||||
$fieldXml->addAttribute('column-definition', $field['columnDefinition']);
|
$fieldXml->addAttribute('column-definition', $field['columnDefinition']);
|
||||||
}
|
}
|
||||||
|
if (isset($field['nullable'])) {
|
||||||
|
$fieldXml->addAttribute('nullable', $field['nullable'] ? 'true' : 'false');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$orderMap = array(
|
$orderMap = array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue