/** * @inheritdoc */ public function beforeSave($insert) { $this->hash = md5($this->route); return parent::beforeSave($insert); }