Cake\ORM\Association\BelongsToMany::_junctionAssociationName PHP Méthode

_junctionAssociationName() protected méthode

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
Résultat string
    protected function _junctionAssociationName()
    {
        if (!$this->_junctionAssociationName) {
            $this->_junctionAssociationName = $this->target()->association($this->junction()->alias())->name();
        }
        return $this->_junctionAssociationName;
    }