Documentation

JoinColumn
in package
implements MappingAttribute Uses JoinColumnProperties

FinalYes
Tags
Annotation
NamedArgumentConstructor

()

Target

({"PROPERTY","ANNOTATION"})

Table of Contents

Interfaces

MappingAttribute
A marker interface for mapping attributes.

Properties

$columnDefinition  : string|null
$fieldName  : string|null
Field name used in non-object hydration (array/scalar).
$name  : string|null
$nullable  : bool
$onDelete  : mixed
$options  : array<string, mixed>
$referencedColumnName  : string
$unique  : bool

Methods

__construct()  : mixed

Properties

$fieldName

Field name used in non-object hydration (array/scalar).

public string|null $fieldName
Tags
readonly

Methods

__construct()

public __construct([string|null $name = null ][, string $referencedColumnName = 'id' ][, bool $unique = false ][, bool $nullable = true ][, mixed $onDelete = null ][, string|null $columnDefinition = null ][, string|null $fieldName = null ][, array<string, mixed> $options = [] ]) : mixed
Parameters
$name : string|null = null
$referencedColumnName : string = 'id'
$unique : bool = false
$nullable : bool = true
$onDelete : mixed = null
$columnDefinition : string|null = null
$fieldName : string|null = null
$options : array<string, mixed> = []

        
On this page

Search results