Mapping/MappingException.php
public static function invalidMappingType($itemClass, $attributeName, $type, $ownerName = null)
	{
		return new self('The mapping attribute "' . $attributeName
				. (isset($ownerName) ? ' of "' . $ownerName . '"' : '')
				. ' is not a valid "' . $type . '" in "' . $itemClass . '".'
		);
	}
public static function invalidMappingType($itemClass, $attributeName, $type, $ownerName = null)
	{
		return new self('The mapping attribute "' . $attributeName
				. (isset($ownerName) ? ' of "' . $ownerName . '"' : '')
				. ' is not a valid "' . $type . '" in "' . $itemClass . '".'
		);
	}
public static function invalidMappingType ( $ itemClass , $ attributeName , $ type , $ ownerName = null ) { return new self ( 'The mapping attribute "' . $ attributeName . ( isset ( $ ownerName ) ? ' of "' . $ ownerName . '"' : '' ) . ' is not a valid "' . $ type . '" in "' . $ itemClass . '".' ) ; }
Return MappingException with invalid type mapping message

@param string $itemClass
@param string $attributeName
@param string $type
@param string $ownerName
@return MappingException
Return MappingException with invalid type mapping message