Cake\ORM\Association\BelongsToMany::_junctionAssociationName PHP Method

_junctionAssociationName() protected method

Returns the name of the association from the target table to the junction table, this name is used to generate alias in the query and to later on retrieve the results.
protected _junctionAssociationName ( ) : string
return string
    protected function _junctionAssociationName()
    {
        if (!$this->_junctionAssociationName) {
            $this->_junctionAssociationName = $this->target()->association($this->junction()->alias())->name();
        }
        return $this->_junctionAssociationName;
    }