OneToManyAssociationBuilder
extends AssociationBuilder
in package
OneToMany Association Builder
Tags
Table of Contents
Properties
- $builder : ClassMetadataBuilder
- $joinColumns : array<string|int, mixed>|null
- $mapping : array<string|int, mixed>
- $type : int
Methods
- __construct() : mixed
- addJoinColumn() : $this
- Add Join Columns.
- build() : ClassMetadataBuilder
- cascadeAll() : $this
- cascadeDetach() : $this
- cascadeMerge() : $this
- cascadePersist() : $this
- cascadeRefresh() : $this
- cascadeRemove() : $this
- fetchEager() : $this
- fetchExtraLazy() : $this
- fetchLazy() : $this
- inversedBy() : $this
- makePrimaryKey() : $this
- Sets field as primary key.
- mappedBy() : $this
- orphanRemoval() : $this
- Removes orphan entities when detached from their parent.
- setIndexBy() : $this
- setOrderBy() : $this
Properties
$builder
protected
ClassMetadataBuilder
$builder
$joinColumns
protected
array<string|int, mixed>|null
$joinColumns
$mapping
protected
array<string|int, mixed>
$mapping
$type
protected
int
$type
Methods
__construct()
public
__construct(ClassMetadataBuilder $builder, array<string|int, mixed> $mapping, int $type) : mixed
Parameters
- $builder : ClassMetadataBuilder
- $mapping : array<string|int, mixed>
- $type : int
addJoinColumn()
Add Join Columns.
public
addJoinColumn(string $columnName, string $referencedColumnName[, bool $nullable = true ][, bool $unique = false ][, string|null $onDelete = null ][, string|null $columnDef = null ]) : $this
Parameters
- $columnName : string
- $referencedColumnName : string
- $nullable : bool = true
- $unique : bool = false
- $onDelete : string|null = null
- $columnDef : string|null = null
Return values
$thisbuild()
public
build() : ClassMetadataBuilder
Return values
ClassMetadataBuildercascadeAll()
public
cascadeAll() : $this
Return values
$thiscascadeDetach()
public
cascadeDetach() : $this
Return values
$thiscascadeMerge()
public
cascadeMerge() : $this
Return values
$thiscascadePersist()
public
cascadePersist() : $this
Return values
$thiscascadeRefresh()
public
cascadeRefresh() : $this
Return values
$thiscascadeRemove()
public
cascadeRemove() : $this
Return values
$thisfetchEager()
public
fetchEager() : $this
Return values
$thisfetchExtraLazy()
public
fetchExtraLazy() : $this
Return values
$thisfetchLazy()
public
fetchLazy() : $this
Return values
$thisinversedBy()
public
inversedBy(string $fieldName) : $this
Parameters
- $fieldName : string
Return values
$thismakePrimaryKey()
Sets field as primary key.
public
makePrimaryKey() : $this
Return values
$thismappedBy()
public
mappedBy(string $fieldName) : $this
Parameters
- $fieldName : string
Return values
$thisorphanRemoval()
Removes orphan entities when detached from their parent.
public
orphanRemoval() : $this
Return values
$thissetIndexBy()
public
setIndexBy(string $fieldName) : $this
Parameters
- $fieldName : string
Return values
$thissetOrderBy()
public
setOrderBy(array<string|int, mixed> $fieldNames) : $this
Parameters
- $fieldNames : array<string|int, mixed>