/** {@inheritdoc} */ public function getPurchaseModel($options = []) { $this->ensureRelatedData(); // To get fresh domain expiration date return parent::getPurchaseModel(array_merge(['expires' => $this->_model->expires], $options)); }
/** {@inheritdoc} */ public function getPurchaseModel($options = []) { $this->ensureRelatedData(); // To get fresh domain expiration date $options = array_merge(['osimage' => $this->osimage, 'panel' => $this->_image->getPanelName(), 'cluster_id' => $this->cluster_id, 'social' => $this->social, 'purpose' => $this->purpose, 'tariff_id' => $this->tariff_id], $options); if ($options['panel'] === Osimage::NO_PANEL) { unset($options['panel']); } return parent::getPurchaseModel($options); }