Documentation

OneToMany
in package
implements MappingAttribute

FinalYes
Tags
Annotation
NamedArgumentConstructor

()

Target

("PROPERTY")

Table of Contents

Interfaces

MappingAttribute
A marker interface for mapping attributes.

Properties

$cascade  : array<string|int, string>|null
$fetch  : string
The fetching strategy to use for the association.
$indexBy  : string|null
$mappedBy  : string|null
$orphanRemoval  : bool
$targetEntity  : class-string|null

Methods

__construct()  : mixed

Properties

$cascade

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

$fetch

The fetching strategy to use for the association.

public string $fetch = 'LAZY'
Tags
psalm-var

'LAZY'|'EAGER'|'EXTRA_LAZY'

readonly
Enum

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

$indexBy

public string|null $indexBy
Tags
readonly

$mappedBy

public string|null $mappedBy
Tags
readonly

$orphanRemoval

public bool $orphanRemoval = false
Tags
readonly

$targetEntity

public class-string|null $targetEntity
Tags
readonly

Methods

__construct()

public __construct([string|null $mappedBy = null ][, class-string|null $targetEntity = null ][, array<string|int, string>|null $cascade = null ][, string $fetch = 'LAZY' ][, bool $orphanRemoval = false ][, string|null $indexBy = null ]) : mixed
Parameters
$mappedBy : string|null = null
$targetEntity : class-string|null = null
$cascade : array<string|int, string>|null = null
$fetch : string = 'LAZY'
$orphanRemoval : bool = false
$indexBy : string|null = null
Tags
psalm-param

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


        
On this page

Search results