public function removeAuthor($author_id) { $pk = array('wish_id' => $this->id, 'author_id' => $author_id); WishAuthor::model()->deleteByPk($pk); }