Method |
Description |
|
__toString ( ) : mixed | null | string |
Get masked entity value when instance is being converted to string |
|
_get ( $name ) : AbstractAttribute |
This method allows us to use simplified access to attributes (no autocomplete). |
|
getAttribute ( $name ) : AbstractAttribute |
This method allows us to chain getAttribute calls on related entities. |
|
getDbValue ( ) : string |
Get value that will be stored to database |
|
getEntity ( ) : string |
Get entity class for this attribute |
|
getOnDelete ( ) : string |
Get action to perform when parent entity is being deleted. |
|
getUpdateExisting ( ) : boolean |
Is update of existing entity allowed? |
|
getValue ( array $params = [], boolean $processCallbacks = true ) : boolean | null | AbstractEntity |
Get attribute value |
|
onSetNull ( $callable ) |
|
|
setEntity ( string $entityClass ) |
Set entity class for this attribute |
|
setOnDelete ( string $action = 'cascade' ) |
Set action to perform when parent entity is being deleted. |
|
setUpdateExisting ( boolean | true $flag = true ) |
Allow update of existing entity |
|
setValue ( null $value = null, boolean $fromDb = false ) |
Set attribute value |
|