yii\behaviors\AttributeTypecastBehavior::afterValidate PHP Method

afterValidate() public method

Handles owner 'afterValidate' event, ensuring attribute typecasting.
public afterValidate ( Event $event )
$event yii\base\Event event instance.
    public function afterValidate($event)
    {
        if (!$this->owner->hasErrors()) {
            $this->typecastAttributes();
        }
    }