class AssociationBuilder (View source)

Properties

protected ClassMetadataBuilder $builder
protected array $mapping
protected array|null $joinColumns
protected int $type

Methods

__construct(ClassMetadataBuilder $builder, array $mapping, int $type)

No description

mappedBy(string $fieldName)

No description

inversedBy(string $fieldName)

No description

cascadeAll()

No description

cascadeMerge()

No description

fetchEager()

No description

fetchLazy()

No description

addJoinColumn(string $columnName, string $referencedColumnName, bool $nullable = true, bool $unique = false, string|null $onDelete = null, string|null $columnDef = null)

Add Join Columns.

build()

No description

Details

__construct(ClassMetadataBuilder $builder, array $mapping, int $type)

Parameters

ClassMetadataBuilder $builder
array $mapping
int $type

AssociationBuilder mappedBy(string $fieldName)

Parameters

string $fieldName

Return Value

AssociationBuilder

AssociationBuilder inversedBy(string $fieldName)

Parameters

string $fieldName

Return Value

AssociationBuilder

AssociationBuilder cascadeAll()

Return Value

AssociationBuilder

AssociationBuilder cascadePersist()

Return Value

AssociationBuilder

AssociationBuilder cascadeRemove()

Return Value

AssociationBuilder

AssociationBuilder cascadeMerge()

Return Value

AssociationBuilder

AssociationBuilder cascadeDetach()

Return Value

AssociationBuilder

AssociationBuilder cascadeRefresh()

Return Value

AssociationBuilder

AssociationBuilder fetchExtraLazy()

Return Value

AssociationBuilder

AssociationBuilder fetchEager()

Return Value

AssociationBuilder

AssociationBuilder fetchLazy()

Return Value

AssociationBuilder

AssociationBuilder addJoinColumn(string $columnName, string $referencedColumnName, bool $nullable = true, bool $unique = false, string|null $onDelete = null, string|null $columnDef = null)

Add Join Columns.

Parameters

string $columnName
string $referencedColumnName
bool $nullable
bool $unique
string|null $onDelete
string|null $columnDef

Return Value

AssociationBuilder