diff --git a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php index 7db57dbad..9dc18a8bd 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php @@ -263,6 +263,9 @@ class YamlDriver extends AbstractFileDriver if (isset($fieldMapping['columnDefinition'])) { $mapping['columnDefinition'] = $fieldMapping['columnDefinition']; } + if (isset($fieldMapping['default'])) { + $mapping['default'] = $fieldMapping['default']; + } $metadata->mapField($mapping); }