Method | Description | Returns |
---|---|---|
getAllowedEntity() | Get the allowed target entity for this definition. If multiple entities are allowed, only returns the first entity. | Definition |
isMultiple() | Checks whether the definition supports multiple records | bool |
isRequired() | Check whether providing a record is required for this definition | bool |
getId() | int | |
getName() | string | |
getIdentifier() | string | |
getPosition() | int | |
getMinRecords() | int | |
getMaxRecords() | int | |
getDefinition() | Definition | |
getRelationships() | Collection (Relationship) | |
getAllowedEntities() | Collection (Definition) | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
isVersionedModel() | Check whether a model is versioned | bool |
getTreeSelectEntityNames() | Get the entity names to use for a tree select | array |
hasMultipleEntitiesAllowed() | Check whether multiple entities are allowed as target for this relationship definition | bool |
CustomEntities\Models\Backend\RelationshipDefinition
RelationshipDefinition