mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Suggestion: Add comment to @JoinColumn (i.e. to foreign key)
#6552
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 @ThomasLandauer on GitHub (Oct 12, 2020).
Since the foreign key field is generated automatically by Doctrine, there's no way to add a column comment to it. So I'm suggesting to enable the same system from @Column
for @JoinColumn too:
This has been suggested before, see https://github.com/doctrine/orm/issues/4075#issuecomment-162366414
@codemistake commented on GitHub (May 16, 2022):
Nobody found a solution? Looks like basic functionality
@greg0ire commented on GitHub (May 17, 2022):
@codemistake consider contributing it.
@xcy7e commented on GitHub (Jun 17, 2022):
You could work around this using
columnDefinitionattribute.Keep in mind you will have to put the whole column specs when using
columnDefinition!reference: joinColumn Attributes