getUser($request); $posting_reaction = PostingReaction::findOneBySQL( "id = :reaction_id AND user_id = :user_id", [ 'reaction_id' => $args['reaction_id'], 'user_id' => $user->user_id ] ); if (!$posting_reaction) { throw new RecordNotFoundException(); } $posting_reaction->delete(); return $this->getCodeResponse(204); } }