I think $this->setCommentAnonymous('2');
should be above$anonymous_commen...