/** * @param CM_Site_Abstract $site */ public function setSite(CM_Site_Abstract $site) { CM_Db_Db::update('cm_user', array('site' => $site->getType()), array('userId' => $this->getId())); $this->_change(); }