original_string: public function addToJoinsMap($alias, Association $assoc, $asMatching = false, $targetProperty = null)
      {
          $this->_joinsMap[$alias] = new EagerLoadable($alias, [
              'aliasPath' => $alias,
              'instance' => $assoc,
              'canBeJoined' => true,
              'forMatching' => $asMatching,
              'targetProperty' => $targetProperty ?: $assoc->getProperty()
          ]);
      }
code: public function addToJoinsMap($alias, Association $assoc, $asMatching = false, $targetProperty = null)
      {
          $this->_joinsMap[$alias] = new EagerLoadable($alias, [
              'aliasPath' => $alias,
              'instance' => $assoc,
              'canBeJoined' => true,
              'forMatching' => $asMatching,
              'targetProperty' => $targetProperty ?: $assoc->getProperty()
          ]);
      }
code_tokens: public function addToJoinsMap ( $ alias , Association $ assoc , $ asMatching = false , $ targetProperty = null ) { $ this -> _joinsMap [ $ alias ] = new EagerLoadable ( $ alias , [ 'aliasPath' => $ alias , 'instance' => $ assoc , 'canBeJoined' => true , 'forMatching' => $ asMatching , 'targetProperty' => $ targetProperty ? : $ assoc -> getProperty ( ) ] ) ; }
docstring: Registers a table alias, typically loaded as a join in a query, as belonging to
  an association. This helps hydrators know what to do with the columns coming
  from such joined table.
  
  @param string $alias The table alias as it appears in the query.
  @param \Cake\ORM\Association $assoc The association object the alias represents;
  will be normalized
  @param bool $asMatching Whether or not this join results should be treated as a
  'matching' association.
  @param string $targetProperty The property name where the results of the join should be nested at.
  If not passed, the default property for the association will be used.
  @return void
docstring_tokens: Registers a table alias typically loaded as a join in a query as belonging to an association . This helps hydrators know what to do with the columns coming from such joined table .