protected function _preSave() { parent::_preSave(); if ($this->title) { $this->slug = Centurion_Inflector::slugify($this->title); } else { $this->slug = Centurion_Inflector::slugify($this->slug); } }