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

Method hasToManyJoins

packages/sql/src/query/QueryBuilder.ts:3939–3943  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3937 }
3938
3939 private hasToManyJoins(): boolean {
3940 return Object.values(this.#state.joins).some(join => {
3941 return [ReferenceKind.ONE_TO_MANY, ReferenceKind.MANY_TO_MANY].includes(join.prop.kind);
3942 });
3943 }
3944
3945 protected wrapPaginateSubQuery(meta: EntityMetadata): void {
3946 const schema = this.getSchema(this.mainAlias);

Callers 5

countMethod · 0.95
finalizeMethod · 0.95
findOneFunction · 0.80
hasToManyJoinsFunction · 0.80
getCountMethod · 0.80

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected