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

Method ensureTPTJoins

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

* Ensures TPT joins are applied. Can be called early before finalize() to populate * the _tptAlias map for use in join resolution. Safe to call multiple times. * @internal

()

Source from the content-addressed store, hash-verified

3568 * @internal
3569 */
3570 ensureTPTJoins(): void {
3571 this.applyTPTJoins();
3572 }
3573
3574 /**
3575 * For TPT (Table-Per-Type) inheritance: INNER JOINs parent tables.

Callers 1

getFieldsForJoinedLoadFunction · 0.80

Calls 1

applyTPTJoinsMethod · 0.95

Tested by

no test coverage detected