/** * Saves this object * * @return bool **/ public function save() { if (!$this->_existsInDb()) { $this->id = mb_strtolower($this->id, mb_detect_encoding($this->id)); } return parent::save(); }