Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
yii
behaviors
AttributeTypecastBehavior
beforeSave
yii\behaviors\AttributeTypecastBehavior::beforeSave PHP Method
AttributeTypecastBehavior Class Documentation
Show file
Open project: yiisoft/yii2
beforeSave()
public
method
Handles owner 'afterInsert' and 'afterUpdate' events, ensuring attribute typecasting.
public
beforeSave
(
Event
$event
)
$event
yii\base\Event
event instance.
public function beforeSave($event) { $this->typecastAttributes(); }
AttributeTypecastBehavior
afterFind
afterValidate
attach
beforeSave
clearAutoDetectedAttributeTypes
detectAttributeTypes
events
typecastAttributes
typecastValue