function loadByID($id) { $res = parent::loadByID($id); if ($res) { $this->registerByID($this->slug); } return $res; }