1
0
mirror of synced 2025-01-06 09:07:09 +03:00

Merge pull request #802 from fasmide/patch-1

Respect unsigned fields when tables get converted to entities.
This commit is contained in:
Benjamin Eberlei 2013-09-26 14:12:24 -07:00
commit b7cffbde37

View File

@ -1431,6 +1431,10 @@ public function __construct()
$column[] = 'nullable=' . var_export($fieldMapping['nullable'], true);
}
if (isset($fieldMapping['unsigned']) && $fieldMapping['unsigned']) {
$column[] = 'options={"unsigned"=true}';
}
if (isset($fieldMapping['columnDefinition'])) {
$column[] = 'columnDefinition="' . $fieldMapping['columnDefinition'] . '"';
}