/**
  * Add a new mapping directory to the array of directories to convert and export
  * to another format
  *
  *     [php]
  *     $cme = new Doctrine\ORM\Tools\Export\ClassMetadataExporter();
  *     $cme->addMappingSource(__DIR__ . '/yaml', 'yaml');
  *     $cme->addMappingSource($schemaManager, 'database');
  *
  * @param string $source   The source for the mapping
  * @param string $type  The type of mapping files (yml, xml, etc.)
  * @return void
  */
 public function addMappingSource($source, $type)
 {
     if (!isset($this->_mappingDrivers[$type])) {
         throw DoctrineException::invalidMappingDriverType($type);
     }
     $driver = $this->getMappingDriver($type, $source);
     $this->_mappingSources[] = array($source, $driver);
 }