Esempio n. 1
0
 /**
  * 更具用户ID更新马甲信息
  *
  * @param App_Majia_MajiaDm $dm
  * @return int
  */
 public function updateByUid(App_Majia_MajiaDm $dm)
 {
     if (true !== ($r = $dm->beforeUpdate())) {
         return $r;
     }
     return $this->_loadDao()->updateByUid($dm->getField('uid'), $dm->getData());
 }