Property | Type | Description | |
---|---|---|---|
$foreignObjectKey | string | ||
$name | string | The actual relation name. | |
$onDelete | string | cascade|setnull|restrict|none | |
$onUpdate | string | cascade|setnull|restrict|none | |
$refName | string | The relation name on the foreign object that points back. | |
$references | Jarves\Admin\FieldTypes\RelationReferenceDefinitionInterface[] | ||
$type | string | ||
$withConstraint | boolean | If the storage backend should also create a constraint so its not possible to pass a invalid reference id |
Method | Description | |
---|---|---|
getForeignObjectKey ( ) : string | ||
getName ( ) : string | ||
getOnDelete ( ) : string | ||
getOnUpdate ( ) : string | ||
getRefName ( ) : string | ||
getReferences ( ) : Jarves\Admin\FieldTypes\RelationReferenceDefinitionInterface[] | ||
getType ( ) : string | ||
getWithConstraint ( ) : boolean | ||
setForeignObjectKey ( string $foreignObjectKey ) | ||
setName ( string $name ) | ||
setOnDelete ( string $onDelete ) | ||
setOnUpdate ( string $onUpdate ) | ||
setRefName ( string $refName ) | ||
setReferences ( Jarves\Admin\FieldTypes\RelationReferenceDefinitionInterface[] $references ) | ||
setType ( string $type ) | ||
setWithConstraint ( boolean $withConstraint ) | If the storage backend should also create a constraint so its not possible to pass a invalid reference id. |
public getReferences ( ) : Jarves\Admin\FieldTypes\RelationReferenceDefinitionInterface[] | ||
return | Jarves\Admin\FieldTypes\RelationReferenceDefinitionInterface[] |
public setForeignObjectKey ( string $foreignObjectKey ) | ||
$foreignObjectKey | string |
public setReferences ( Jarves\Admin\FieldTypes\RelationReferenceDefinitionInterface[] $references ) | ||
$references | Jarves\Admin\FieldTypes\RelationReferenceDefinitionInterface[] |
public setWithConstraint ( boolean $withConstraint ) | ||
$withConstraint | boolean |
protected string $refName | ||
return | string |
protected RelationReferenceDefinitionInterface[],Jarves\Admin\FieldTypes $references | ||
return | Jarves\Admin\FieldTypes\RelationReferenceDefinitionInterface[] |
protected bool $withConstraint | ||
return | boolean |