mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3608: [GH-1327] Properly generate default value from yml & xml mapping #4433
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?
Originally created by @doctrinebot on GitHub (Mar 10, 2015).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of j0k3r:
Url: https://github.com/doctrine/doctrine2/pull/1327
Message:
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 :
@doctrinebot commented on GitHub (Mar 10, 2015):
@doctrinebot commented on GitHub (Mar 16, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1327] was labeled:
https://github.com/doctrine/doctrine2/pull/1327
@doctrinebot commented on GitHub (Mar 16, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1327] was assigned:
https://github.com/doctrine/doctrine2/pull/1327
@doctrinebot commented on GitHub (Mar 17, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1327] was closed:
https://github.com/doctrine/doctrine2/pull/1327
@doctrinebot commented on GitHub (Mar 17, 2015):
Issue was closed with resolution "Fixed"