public function parseMappingInfo()
	{
		$mappings = array();

		foreach ($this->getMappings() as $mappingName => $mappingConfig)
		{
			// This is from symfony DoctrineBundle, should be reviewed
			if (is_array($mappingConfig) === false or \Arr::get($mappingConfig, 'mapping', true) === false)
			{
				continue;
			}

			$mappingConfig = array_replace(array(
				'dir'    => false,
				'type'   => false,
				'prefix' => false,
			), $mappingConfig);

			if (isset($mappingConfig['is_component']) === false)
			{
				$mappingConfig['is_component'] = false;

				if (is_dir($mappingConfig['dir']) === false)
				{
					$mappingConfig['is_component'] = (\Package::loaded($mappingName) or \Module::loaded($mappingName));
				}
			}

			if ($mappingConfig['is_component'])
			{
				$mappingConfig = $this->getComponentDefaults($mappingName, $mappingConfig);
			}

			if (empty($mappingConfig))
			{
				continue;
			}

			$mappings[$mappingName] = $mappingConfig;
		}

		$this->config['mappings'] = $mappings;
	}
public function parseMappingInfo()
	{
		$mappings = array();

		foreach ($this->getMappings() as $mappingName => $mappingConfig)
		{
			// This is from symfony DoctrineBundle, should be reviewed
			if (is_array($mappingConfig) === false or \Arr::get($mappingConfig, 'mapping', true) === false)
			{
				continue;
			}

			$mappingConfig = array_replace(array(
				'dir'    => false,
				'type'   => false,
				'prefix' => false,
			), $mappingConfig);

			if (isset($mappingConfig['is_component']) === false)
			{
				$mappingConfig['is_component'] = false;

				if (is_dir($mappingConfig['dir']) === false)
				{
					$mappingConfig['is_component'] = (\Package::loaded($mappingName) or \Module::loaded($mappingName));
				}
			}

			if ($mappingConfig['is_component'])
			{
				$mappingConfig = $this->getComponentDefaults($mappingName, $mappingConfig);
			}

			if (empty($mappingConfig))
			{
				continue;
			}

			$mappings[$mappingName] = $mappingConfig;
		}

		$this->config['mappings'] = $mappings;
	}
public function parseMappingInfo ( ) { $ mappings = array ( ) ; foreach ( $ this -> getMappings ( ) as $ mappingName => $ mappingConfig ) { // This is from symfony DoctrineBundle, should be reviewed if ( is_array ( $ mappingConfig ) === false or \ Arr :: get ( $ mappingConfig , 'mapping' , true ) === false ) { continue ; } $ mappingConfig = array_replace ( array ( 'dir' => false , 'type' => false , 'prefix' => false , ) , $ mappingConfig ) ; if ( isset ( $ mappingConfig [ 'is_component' ] ) === false ) { $ mappingConfig [ 'is_component' ] = false ; if ( is_dir ( $ mappingConfig [ 'dir' ] ) === false ) { $ mappingConfig [ 'is_component' ] = ( \ Package :: loaded ( $ mappingName ) or \ Module :: loaded ( $ mappingName ) ) ; } } if ( $ mappingConfig [ 'is_component' ] ) { $ mappingConfig = $ this -> getComponentDefaults ( $ mappingName , $ mappingConfig ) ; } if ( empty ( $ mappingConfig ) ) { continue ; } $ mappings [ $ mappingName ] = $ mappingConfig ; } $ this -> config [ 'mappings' ] = $ mappings ; }
Parses mapping info

@return array
Parses mapping info