src/ORM/ManyManyList.php
protected function linkJoinTable()
    {
        // Join to the many-many join table
        $dataClassIDColumn = DataObject::getSchema()->sqlColumnForField($this->dataClass(), 'ID');
        $this->dataQuery->innerJoin(
            $this->joinTable,
            "\"{$this->joinTable}\".\"{$this->localKey}\" = {$dataClassIDColumn}"
        );

        // Add the extra fields to the query
        if ($this->extraFields) {
            $this->appendExtraFieldsToQuery();
        }
    }
protected function linkJoinTable()
    {
        // Join to the many-many join table
        $dataClassIDColumn = DataObject::getSchema()->sqlColumnForField($this->dataClass(), 'ID');
        $this->dataQuery->innerJoin(
            $this->joinTable,
            "\"{$this->joinTable}\".\"{$this->localKey}\" = {$dataClassIDColumn}"
        );

        // Add the extra fields to the query
        if ($this->extraFields) {
            $this->appendExtraFieldsToQuery();
        }
    }
protected function linkJoinTable ( ) { // Join to the many-many join table $ dataClassIDColumn = DataObject :: getSchema ( ) -> sqlColumnForField ( $ this -> dataClass ( ) , 'ID' ) ; $ this -> dataQuery -> innerJoin ( $ this -> joinTable , "\"{$this->joinTable}\".\"{$this->localKey}\" = {$dataClassIDColumn}" ) ; // Add the extra fields to the query if ( $ this -> extraFields ) { $ this -> appendExtraFieldsToQuery ( ) ; } }
Setup the join between this dataobject and the necessary mapping table
Setup the join between this dataobject and the necessary mapping table