public static function getByRepresentation($representation) {
		
		list ($languageCode, $countryCode) = explode('-', $representation);
		
		$query =
			'SELECT lc.*' .
			' FROM `locales` as lc' .
			' INNER JOIN `languages` AS l ON lc.language_id = l.id' .
			' INNER JOIN `countries` AS c ON lc.country_id = c.id' .
			' WHERE c.code = ?' .
			' AND l.code = ?';
		
		return static::getObjectByQuery($query, [$countryCode, $languageCode]);
		
	}
public static function getByRepresentation($representation) {
		
		list ($languageCode, $countryCode) = explode('-', $representation);
		
		$query =
			'SELECT lc.*' .
			' FROM `locales` as lc' .
			' INNER JOIN `languages` AS l ON lc.language_id = l.id' .
			' INNER JOIN `countries` AS c ON lc.country_id = c.id' .
			' WHERE c.code = ?' .
			' AND l.code = ?';
		
		return static::getObjectByQuery($query, [$countryCode, $languageCode]);
		
	}
public static function getByRepresentation ( $ representation ) { list ( $ languageCode , $ countryCode ) = explode ( '-' , $ representation ) ; $ query = 'SELECT lc.*' . ' FROM `locales` as lc' . ' INNER JOIN `languages` AS l ON lc.language_id = l.id' . ' INNER JOIN `countries` AS c ON lc.country_id = c.id' . ' WHERE c.code = ?' . ' AND l.code = ?' ; return static :: getObjectByQuery ( $ query , [ $ countryCode , $ languageCode ] ) ; }
Returns the Locale object by its representation.

@param	string	Locale representation (eg. en-GB).

@return	Locale|NULL
Returns the Locale object by its representation .