ForeignEntityModel
extends AbstractModel
in package
FinalYes
Table of Contents
Properties
- $entityModel : EntityModel
- $referenceKeyInChild : string
- $referenceKeyInParent : string
Methods
- __construct() : mixed
- getEntityModel() : EntityModel
- getNotNullConstraint() : INotNullConstraint|null
- getReferencedKeyInChild() : string
- getReferenceKeyInParent() : string
- isNullable() : bool
- Shorter way to check whether the content can be null.
Properties
$entityModel
private
EntityModel
$entityModel
$referenceKeyInChild
private
string
$referenceKeyInChild
$referenceKeyInParent
private
string
$referenceKeyInParent
Methods
__construct()
public
__construct(EntityModel $entityModel, string $referenceKeyInChild, string $referenceKeyInParent[, bool $isNullable = false ]) : mixed
Parameters
- $entityModel : EntityModel
- $referenceKeyInChild : string
- $referenceKeyInParent : string
- $isNullable : bool = false
getEntityModel()
public
getEntityModel() : EntityModel
Return values
EntityModelgetNotNullConstraint()
public
getNotNullConstraint() : INotNullConstraint|null
Attributes
- #[Override]
Return values
INotNullConstraint|null —Whether the content is necessarily specified or can be left omitted.
getReferencedKeyInChild()
public
getReferencedKeyInChild() : string
Return values
stringgetReferenceKeyInParent()
public
getReferenceKeyInParent() : string
Return values
stringisNullable()
Shorter way to check whether the content can be null.
public
isNullable() : bool
Attributes
- #[Override]