protected function _aliasing($name, $alias, $map = []) {
		list($first, $second) = $this->_splitFieldname($name);
		if (!$first && preg_match('/^[a-z0-9_-]+$/i', $second)) {
			return $alias . "." . $second;
		} elseif (isset($map[$first])) {
			return $map[$first] . "." . $second;
		}
		return $name;
	}
protected function _aliasing($name, $alias, $map = []) {
		list($first, $second) = $this->_splitFieldname($name);
		if (!$first && preg_match('/^[a-z0-9_-]+$/i', $second)) {
			return $alias . "." . $second;
		} elseif (isset($map[$first])) {
			return $map[$first] . "." . $second;
		}
		return $name;
	}
protected function _aliasing ( $ name , $ alias , $ map = [ ] ) { list ( $ first , $ second ) = $ this -> _splitFieldname ( $ name ) ; if ( ! $ first && preg_match ( '/^[a-z0-9_-]+$/i' , $ second ) ) { return $ alias . "." . $ second ; } elseif ( isset ( $ map [ $ first ] ) ) { return $ map [ $ first ] . "." . $ second ; } return $ name ; }
Helper which add an alias basename to a field name if necessary

@param string $name The field name.
@param string $alias The alias name
@param array $map An array of `'modelname' => 'aliasname'` mapping
@return string
Helper which add an alias basename to a field name if necessary