Skip to content


DDC-3058: [GH-993] Update JoinColumn.php #3829

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of KamilKopaczyk:

Url: #993


If $referencedColumnName = 'id' by default, it doesn't make sense to make checks like:

if (empty($joinColumn['referencedColumnName'])) {

(ClassMetaDataInfo file)

Considering you map your column


You'll get JoinColumn with 'id' value, which doesn't let doctrine use naming strategies for referenced column names


Comment created by @doctrinebot:

A related Github Pull-Request [GH-993] was closed:


Comment created by @guilhermeblanco:

Unfortunately, while this is true for Annotations (it can never be empty), it is not for XML, YAML and PHP itself.
When using Annotations, we keep convention over configuration as the standard, providing the default id, while we require further configuration on other drivers.

Closing as invalid.


Issue was closed with resolution "Invalid"

@doctrinebot doctrinebot added this to the 2.5 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.