| Methods |
public
|
__construct(
string $name,
EntityTypeInterface $targetType,
bool $isCollection = true,
bool $isNullable = true,
?string $partnerName = null,
bool $isContainmentTarget = false,
array<string, string> $referentialConstraints = [],
?string $onDeleteAction = null,
list<AnnotationInterface> $annotations = [],
)
Parameters
| $referentialConstraints |
dependent → principal property names
|
|
#
|
public
|
getName(): string
The unqualified name of this element within its parent scope.
The unqualified name of this element within its parent scope.
Must conform to the OData SimpleIdentifier production rule:
a non-empty string of at most 128 characters, starting with
a letter or underscore, followed by letters, digits, or underscores.
Implements
|
#
|
public
|
getTargetType(): EntityTypeInterface
The resolved target entity type of this navigation property.
The resolved target entity type of this navigation property.
Implements
|
#
|
public
|
isCollection(): bool
Whether this navigation property is collection-valued.
Whether this navigation property is collection-valued.
Implements
|
#
|
public
|
isNullable(): bool
Whether a null target is permitted for a single-valued
navigation property. Always false for collection-valued…
Whether a null target is permitted for a single-valued
navigation property. Always false for collection-valued
navigation properties.
Implements
|
#
|
public
|
getPartnerName(): ?string
The name of the partner navigation property on the target
entity type, or null when no partner is declared.
The name of the partner navigation property on the target
entity type, or null when no partner is declared.
The partner is not resolved to an object here because doing so
would introduce a circular reference between the two types.
Callers can resolve the name via the target type if needed.
Implements
|
#
|
public
|
isContainmentTarget(): bool
Whether this navigation property defines a containment
relationship, meaning the target entities are part of the
source…
Whether this navigation property defines a containment
relationship, meaning the target entities are part of the
source entity and have no independent identity outside of it.
Implements
|
#
|
public
|
getReferentialConstraints(): array
The referential constraints declared on this navigation property,
mapping dependent structural property names to…
The referential constraints declared on this navigation property,
mapping dependent structural property names to principal property
names. Returns an empty array when none are declared.
The array key is the name of the dependent property on this
entity type; the value is the name of the referenced property
on the principal entity type.
Implements
|
#
|
public
|
getOnDeleteAction(): ?string
The on-delete action declared for this relationship, or null
when absent. Possible values per spec: "Cascade", "None",
…
The on-delete action declared for this relationship, or null
when absent. Possible values per spec: "Cascade", "None",
"SetNull", "SetDefault".
Implements
|
#
|