protected function _beforeSave() { if ($this->getForceIncludeFilterName() === '') { $this->setForceIncludeFilterName(null); } $this->setFinalIncludeFilterName($this->getForceIncludeFilterName() !== null ? $this->getForceIncludeFilterName() : $this->getIncludeFilterName()); $this->setFinalUrlKey($this->getManualUrlKey() !== null && trim($this->getManualUrlKey()) !== '' ? $this->getManualUrlKey() : $this->getUrlKey()); parent::_beforeSave(); return $this; }
protected function _beforeSave() { $this->overrideUpdatedAt(now()); $this->_updateSample(); return parent::_beforeSave(); }