Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
yii
behaviors
AttributeTypecastBehavior
beforeSave
yii\behaviors\AttributeTypecastBehavior::beforeSave PHP Method
AttributeTypecastBehavior Class Documentation
ファイルを表示
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