MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / getNextAlias

Method getNextAlias

packages/sql/src/query/QueryBuilder.ts:2403–2406  ·  view source on GitHub ↗

* @internal

(entityName: string | EntityName = 'e')

Source from the content-addressed store, hash-verified

2401 * @internal
2402 */
2403 getNextAlias(entityName: string | EntityName = 'e'): string {
2404 entityName = Utils.className(entityName);
2405 return this.driver.config.getNamingStrategy().aliasName(entityName, this.#state.aliasCounter++);
2406 }
2407
2408 /**
2409 * Registers a join for a specific polymorphic target type.

Callers 8

joinReferenceMethod · 0.95
resolveNestedPathMethod · 0.95
applyTPTJoinsMethod · 0.95
processPopulateHintMethod · 0.95
fromSubQueryMethod · 0.95
fromEntityNameMethod · 0.95
fromRawTableMethod · 0.95

Calls 3

classNameMethod · 0.80
aliasNameMethod · 0.65
getNamingStrategyMethod · 0.45

Tested by

no test coverage detected