protected function _status($from, $to, $action)
{
switch ($action) {
case static::ACT_CONVERT_TO_OBJECT:
/* @var $from Server */
$to->status = lcfirst(str_replace(' ', '_', $from->status));
break;
case static::ACT_CONVERT_TO_ENTITY:
/* @var $to Server */
$to->status = ucfirst(str_replace('_', ' ', $from->status));
break;
case static::ACT_GET_FILTER_CRITERIA:
return [['status' => ucfirst(str_replace('_', ' ', $from->status))]];
}
}