/** * Marks values provided in the state as dirty. * * @param array $state Product state. */ public function markAsDirty(array $state) { $this->dirtyFields[] = 'sales'; parent::markAsDirty($state); }