/** {@inheritdoc} */
 private function ensureRelatedData()
 {
     $this->_model = ServerHelper::getAvailablePackages(null, $this->tariff_id);
     if ($this->_model === null) {
         throw new InvalidConfigException('Failed to find tariff');
     }
     $this->_image = Osimage::find()->where(['osimage' => $this->osimage, 'type' => $this->_model->getType()])->one();
     if ($this->_image === null) {
         throw new InvalidConfigException('Failed to find osimage');
     }
     $this->name = $this->_model->getName();
     $this->description = Yii::t('hipanel:server:order', 'Order');
 }
 public function actionOpenVz()
 {
     return $this->render('open_vz', ['packages' => ServerHelper::getAvailablePackages(Tariff::TYPE_OPENVZ), 'tariffTypes' => Yii::$app->params['vdsproduct']]);
 }