original_string: protected function _generateSourceAssociations($junction, $source)
      {
          $junctionAlias = $junction->getAlias();
          if (!$source->hasAssociation($junctionAlias)) {
              $source->hasMany($junctionAlias, [
                  'targetTable' => $junction,
                  'foreignKey' => $this->getForeignKey(),
                  'strategy' => $this->_strategy,
              ]);
          }
      }
code: protected function _generateSourceAssociations($junction, $source)
      {
          $junctionAlias = $junction->getAlias();
          if (!$source->hasAssociation($junctionAlias)) {
              $source->hasMany($junctionAlias, [
                  'targetTable' => $junction,
                  'foreignKey' => $this->getForeignKey(),
                  'strategy' => $this->_strategy,
              ]);
          }
      }
code_tokens: protected function _generateSourceAssociations ( $ junction , $ source ) { $ junctionAlias = $ junction -> getAlias ( ) ; if ( ! $ source -> hasAssociation ( $ junctionAlias ) ) { $ source -> hasMany ( $ junctionAlias , [ 'targetTable' => $ junction , 'foreignKey' => $ this -> getForeignKey ( ) , 'strategy' => $ this -> _strategy , ] ) ; } }
docstring: 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
docstring_tokens: Generate additional source table associations as necessary .