/** * Proxy method for DynamicField::getJOIN * * @param bool $expandedList * @param bool $includeRelates * @param string|bool $where * * @return array */ public function getCustomJoin($expandedList = false, $includeRelates = false, &$where = false) { $result = ['select' => '', 'join' => '']; if (isset($this->custom_fields)) { $result = $this->custom_fields->getJOIN($expandedList, $includeRelates, $where); } return $result; }