mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1733: [GH-311] Proposal: Support for default attribute in yaml mappings. #2177
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 28, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of benlumley:
Url: https://github.com/doctrine/doctrine2/pull/311
Message:
There's probably a very good reason you don't already do this... please let me know if there is!
The EntityGenerator supports writing a default value for a property/column when generating a class, but the yaml driver doesn't pick this up. This tiny change makes it work - you can do something like:
and you end up with..
Similar change would also work for the other drivers I guess.
@doctrinebot commented on GitHub (Mar 29, 2012):
Comment created by @beberlei:
A related Github Pull-Request [GH-311] was closed
https://github.com/doctrine/doctrine2/pull/311
@doctrinebot commented on GitHub (Mar 30, 2012):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Dec 19, 2013):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-311] was closed:
https://github.com/doctrine/common/pull/311