AssociationOverride
in package
implements
MappingAttribute
FinalYes
This attribute is used to override association mapping of property for an entity relationship.
Tags
Table of Contents
Interfaces
- MappingAttribute
- A marker interface for mapping attributes.
Properties
- $fetch : string|null
- The fetching strategy to use for the association.
- $inversedBy : string|null
- The name of the association-field on the inverse-side.
- $inverseJoinColumns : array<string|int, JoinColumn>|null
- The join column that is being mapped to the persistent attribute.
- $joinColumns : array<string|int, JoinColumn>|null
- The join column that is being mapped to the persistent attribute.
- $joinTable : JoinTable|null
- The join table that maps the relationship.
- $name : string
- The name of the relationship property whose mapping is being overridden.
Methods
- __construct() : mixed
Properties
$fetch
The fetching strategy to use for the association.
public
string|null
$fetch
Tags
$inversedBy
The name of the association-field on the inverse-side.
public
string|null
$inversedBy
Tags
$inverseJoinColumns
The join column that is being mapped to the persistent attribute.
public
array<string|int, JoinColumn>|null
$inverseJoinColumns
Tags
$joinColumns
The join column that is being mapped to the persistent attribute.
public
array<string|int, JoinColumn>|null
$joinColumns
Tags
$joinTable
The join table that maps the relationship.
public
JoinTable|null
$joinTable
Tags
$name
The name of the relationship property whose mapping is being overridden.
public
string
$name
Tags
Methods
__construct()
public
__construct(string $name[, JoinColumn|array<string|int, JoinColumn> $joinColumns = null ][, JoinColumn|array<string|int, JoinColumn> $inverseJoinColumns = null ][, JoinTable|null $joinTable = null ][, string|null $inversedBy = null ][, string|null $fetch = null ]) : mixed
Parameters
- $name : string
- $joinColumns : JoinColumn|array<string|int, JoinColumn> = null
- $inverseJoinColumns : JoinColumn|array<string|int, JoinColumn> = null
- $joinTable : JoinTable|null = null
- $inversedBy : string|null = null
- $fetch : string|null = null