コード例 #1
0
 public static function deleteKshow(kshow $kshow)
 {
     $kuser = $kshow->getKuser();
     // this might happen when creating a temp kshow without setting its producer
     if ($kuser == NULL) {
         return;
     }
     $v = $kuser->getProducedKshows();
     self::dec($v);
     $kuser->setProducedKshows($v);
     self::add($kuser);
 }