source/Application/Controller/AccountReviewController.php
public function deleteReviewAndRating()
    {
        if ($this->getSession()->checkSessionChallenge()) {
            try {
                $this->deleteReview();
                $this->deleteRating();
            } catch (EntryDoesNotExistDaoException $exception) {
                //if user reloads the page after deletion
            }
        }
    }
public function deleteReviewAndRating()
    {
        if ($this->getSession()->checkSessionChallenge()) {
            try {
                $this->deleteReview();
                $this->deleteRating();
            } catch (EntryDoesNotExistDaoException $exception) {
                //if user reloads the page after deletion
            }
        }
    }
public function deleteReviewAndRating ( ) { if ( $ this -> getSession ( ) -> checkSessionChallenge ( ) ) { try { $ this -> deleteReview ( ) ; $ this -> deleteRating ( ) ; } catch ( EntryDoesNotExistDaoException $ exception ) { //if user reloads the page after deletion } } }
Delete review and rating, which belongs to the active user.
Delete review and rating which belongs to the active user .