
    public function getTicketById($idTicket)
    {
        return $this->where("id", $idTicket)->find();
    }

    public function getTicketListByUid($uid, $since_id = 0, $length = 10)
    {
        $query = $this->match('User')->where("uid", $uid);
        $since_id > 0 && $query->where('id', '>', $since_id);
        return $query->order('create_time ASC')->limit($length)->select();
    }

    public function getUserTicketStatus($idMatch, $uid)
    {