public function beforeProcess() { parent::beforeProcess(); if (!$this->isProxyExist()) { throw new LogicException('Before proxy should be defined earlier than after Action is performed.'); } if ($this->getProductId() <= 0) { throw new LogicException('Product ID should be defined for "after save" event.'); } $this->reloadProduct(); }
public function beforeProcess() { parent::beforeProcess(); $this->clearStoredProxy(); }