Submission_Value_Query::parse_join()

Parses the SQL join value.

Description

Return

(string) Join value for the SQL query.

Source

File: src/db-objects/submission-values/submission-value-query.php

	protected function parse_join() {
		$join = parent::parse_join();

		if ( ! empty( $this->query_vars['form_id'] ) ) {
			$table_name = $this->manager->get_table_name();
			$submission_table_name = $this->manager->get_parent_manager( 'submissions' )->get_table_name();

			$join .= " INNER JOIN %{$submission_table_name}% ON ( %{$table_name}%.submission_id = %{$submission_table_name}%.id )";
		}

		return $join;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.