protected function _generateSourceAssociations($junction, $source)
    {
        $junctionAlias = $junction->getAlias();
        if (!$source->hasAssociation($junctionAlias)) {
            $source->hasMany($junctionAlias, [
                'targetTable' => $junction,
                'foreignKey' => $this->getForeignKey(),
                'strategy' => $this->_strategy,
            ]);
        }
    }
protected function _generateSourceAssociations($junction, $source)
    {
        $junctionAlias = $junction->getAlias();
        if (!$source->hasAssociation($junctionAlias)) {
            $source->hasMany($junctionAlias, [
                'targetTable' => $junction,
                'foreignKey' => $this->getForeignKey(),
                'strategy' => $this->_strategy,
            ]);
        }
    }
protected function _generateSourceAssociations ( $ junction , $ source ) { $ junctionAlias = $ junction -> getAlias ( ) ; if ( ! $ source -> hasAssociation ( $ junctionAlias ) ) { $ source -> hasMany ( $ junctionAlias , [ 'targetTable' => $ junction , 'foreignKey' => $ this -> getForeignKey ( ) , 'strategy' => $ this -> _strategy , ] ) ; } }
Generate additional source table associations as necessary.

Generates the following associations:

- source hasMany junction e.g. Tags hasMany ArticlesTags

You can override these generated associations by defining associations
with the correct aliases.

@param \Cake\ORM\Table $junction The junction table.
@param \Cake\ORM\Table $source The source table.
@return void
Generate additional source table associations as necessary .