Skip to content


DDC-522: Join columns can not be named the same as the association fields. #5031

doctrinebot opened this Issue · 3 comments

1 participant


Jira issue originally created by user romanb:

Join columns can currently not be named the same as the association fields in a class. This apparently causes Doctrine to insert the identifier of the associated object instead of the actual object (on hydration of the fetch-joined association at least).


     * @OneToOne(...)
     * @JoinColumn(name="item", referencedColumnName="id")
    private $item;

Comment created by romanb:



Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-BETA4 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.