AssociationMappingHelper
in package
FinalYes
Reads association metadata in Doctrine ORM 3, where `joinColumns` and `mappedBy` exist only on the concrete side of an association, not on the generic `AssociationMapping`.
Table of Contents
Methods
- joinColumnName() : string
- Returns the foreign key column of a ToOne association on the owning side (ManyToOne, owning OneToOne).
- mappedBy() : string|null
- Returns `mappedBy` of the inverse side of an association; null on the owning side.
Methods
joinColumnName()
Returns the foreign key column of a ToOne association on the owning side (ManyToOne, owning OneToOne).
public
static joinColumnName(AssociationMapping $mapping) : string
Any other association has no join column, so it throws a LogicException instead of failing on a null property.
Parameters
- $mapping : AssociationMapping
Return values
stringmappedBy()
Returns `mappedBy` of the inverse side of an association; null on the owning side.
public
static mappedBy(AssociationMapping $mapping) : string|null
Parameters
- $mapping : AssociationMapping