public function createAliasName(string $className): string
    {
        $alias = lcfirst(preg_replace('~^.*\\\\~', '', $className));
        if (!isset($this->aliasCount[$alias])) {
            $this->aliasCount[$alias] = 1;
        }

        return $alias . $this->aliasCount[$alias]++;
    }
public function createAliasName(string $className): string
    {
        $alias = lcfirst(preg_replace('~^.*\\\\~', '', $className));
        if (!isset($this->aliasCount[$alias])) {
            $this->aliasCount[$alias] = 1;
        }

        return $alias . $this->aliasCount[$alias]++;
    }
public function createAliasName ( string $ className ) : string { $ alias = lcfirst ( preg_replace ( '~^.*\\\\~' , '' , $ className ) ) ; if ( ! isset ( $ this -> aliasCount [ $ alias ] ) ) { $ this -> aliasCount [ $ alias ] = 1 ; } return $ alias . $ this -> aliasCount [ $ alias ] ++ ; }
Return a string to be used as alias name in a query

@param string $className

@return string
Return a string to be used as alias name in a query