protected function generateHashAndSave()
    {
        if ($this->hashWorkingRecord->{$this->hashDbField}) {
            return;
        }

        $this->generateHash();

        if ($this->hashWorkingRecord->{$this->hashDbField}) {
            $this->hashWorkingRecord->write();
        }
    }