public function _placement($from, $to, $action)
{
switch ($action) {
case static::ACT_CONVERT_TO_OBJECT:
/* @var $from FarmRole */
$to->placement = static::getPlacementConfiguration($from);
break;
case static::ACT_CONVERT_TO_ENTITY:
/* @var $to FarmRole */
static::setupPlacementConfiguration($to, $from->placement);
break;
case static::ACT_GET_FILTER_CRITERIA:
return [[]];
}
}