protected function build() { if ($this->event) { $this->where[] = " event_comment_information.event_id = :event_id "; $this->params['event_id'] = $this->event->getId(); } if (!$this->include_deleted) { $this->where[] = " event_comment_information.is_deleted = '0' "; } if (!$this->include_closed_by_admin) { $this->where[] = " event_comment_information.is_closed_by_admin = '0' "; } }