if (empty($this->slug)) {
            $this->generateSlug(); 
            $this->commit(); 
        }