class OneToManyAssociationBuilder extends AssociationBuilder (View source)

OneToMany Association Builder

Properties

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

Methods

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

No description

mappedBy(string $fieldName)

No description

inversedBy(string $fieldName)

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

setOrderBy(array $fieldNames)

No description

setIndexBy(string $fieldName)

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 cascadePersist()

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

OneToManyAssociationBuilder setOrderBy(array $fieldNames)

Parameters

array $fieldNames

Return Value

OneToManyAssociationBuilder

OneToManyAssociationBuilder setIndexBy(string $fieldName)

Parameters

string $fieldName

Return Value

OneToManyAssociationBuilder