Merge pull request #311 from benlumley/patch-1
Proposal: Support for default attribute in yaml mappings.
This commit is contained in:
commit
290f8a79e4
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user