mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Documentation of ClassMetadataInfo::$associationMapping lacks information about joinColumns #5034
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 @holtkamp on GitHub (Mar 5, 2016).
Originally assigned to: @Ocramius on GitHub.
It seems that the documentation of the
ClassMetadataInfo::$associationMappingproperty does not describe thejoinColumnsentry. It does describe thejoinTableentry.I needed information about the joinColum to determine whether a one-to-one association was marked as nullable. Something like this seems to provide the proper information (assuming we already know it is an association we are talking about).
@holtkamp commented on GitHub (Oct 28, 2016):
seem to have overlooked this line:
c1943624ab/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php (L525)