original_string: protected function setMappingDriverAlias($mappingConfig, $mappingName)
      {
          if (isset($mappingConfig['alias'])) {
              $this->aliasMap[$mappingConfig['alias']] = $mappingConfig['prefix'];
          } else {
              $this->aliasMap[$mappingName] = $mappingConfig['prefix'];
          }
      }
code: protected function setMappingDriverAlias($mappingConfig, $mappingName)
      {
          if (isset($mappingConfig['alias'])) {
              $this->aliasMap[$mappingConfig['alias']] = $mappingConfig['prefix'];
          } else {
              $this->aliasMap[$mappingName] = $mappingConfig['prefix'];
          }
      }
code_tokens: protected function setMappingDriverAlias ( $ mappingConfig , $ mappingName ) { if ( isset ( $ mappingConfig [ 'alias' ] ) ) { $ this -> aliasMap [ $ mappingConfig [ 'alias' ] ] = $ mappingConfig [ 'prefix' ] ; } else { $ this -> aliasMap [ $ mappingName ] = $ mappingConfig [ 'prefix' ] ; } }
docstring: Register the alias for this mapping driver.
  
  Aliases can be used in the Query languages of all the Doctrine object managers to simplify writing tasks.
  
  @param array  $mappingConfig
  @param string $mappingName
docstring_tokens: Register the alias for this mapping driver .