1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Merge pull request #311 from benlumley/patch-1

Proposal: Support for default attribute in yaml mappings.
This commit is contained in:
Guilherme Blanco 2012-03-28 18:09:50 -07:00
commit 290f8a79e4

View File

@ -263,6 +263,9 @@ class YamlDriver extends AbstractFileDriver
if (isset($fieldMapping['columnDefinition'])) { if (isset($fieldMapping['columnDefinition'])) {
$mapping['columnDefinition'] = $fieldMapping['columnDefinition']; $mapping['columnDefinition'] = $fieldMapping['columnDefinition'];
} }
if (isset($fieldMapping['default'])) {
$mapping['default'] = $fieldMapping['default'];
}
$metadata->mapField($mapping); $metadata->mapField($mapping);
} }