Documentation

AssociationOverride
in package
implements MappingAttribute

FinalYes

This attribute is used to override association mapping of property for an entity relationship.

Tags
Annotation
NamedArgumentConstructor
Target

("ANNOTATION")

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
psalm-var

'LAZY'|'EAGER'|'EXTRA_LAZY'|null

readonly
Enum

({"LAZY", "EAGER", "EXTRA_LAZY"})

$inversedBy

The name of the association-field on the inverse-side.

public string|null $inversedBy
Tags
readonly

$inverseJoinColumns

The join column that is being mapped to the persistent attribute.

public array<string|int, JoinColumn>|null $inverseJoinColumns
Tags
readonly

$joinColumns

The join column that is being mapped to the persistent attribute.

public array<string|int, JoinColumn>|null $joinColumns
Tags
readonly

$name

The name of the relationship property whose mapping is being overridden.

public string $name
Tags
readonly

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
Tags
psalm-param

'LAZY'|'EAGER'|'EXTRA_LAZY'|null $fetch


        
On this page

Search results