mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1327] Properly generate default value from yml & xml mapping #9381
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/1327
State: closed
Merged: No
Yaml & Xml mapping which define default value for a field aren't properly generated in the entity class by the
EntityGenerator.This is how the documentation says to define a default value in xml:
and in yml:
Both generates this field mapping (aka
$fieldMapping):But the
EntityGeneratorcheck the default value in the wrong place, in$fieldMapping['default']instead of$fieldMapping['options']['default'].This is related to :