Documentation

OneToManyAssociationBuilder extends AssociationBuilder
in package

OneToMany Association Builder

Tags
link
www.doctrine-project.com

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

Methods

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
$this

inversedBy()

public inversedBy(string $fieldName) : $this
Parameters
$fieldName : string
Return values
$this

makePrimaryKey()

Sets field as primary key.

public makePrimaryKey() : $this
Return values
$this

mappedBy()

public mappedBy(string $fieldName) : $this
Parameters
$fieldName : string
Return values
$this

orphanRemoval()

Removes orphan entities when detached from their parent.

public orphanRemoval() : $this
Return values
$this

setOrderBy()

public setOrderBy(array<string|int, mixed> $fieldNames) : $this
Parameters
$fieldNames : array<string|int, mixed>
Tags
psalm-param

array<string, string> $fieldNames

Return values
$this

        
On this page

Search results