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

Method className

packages/core/src/utils/Utils.ts:719–725  ·  view source on GitHub ↗

* Gets string name of given class.

(classOrName: string | EntityName<T>)

Source from the content-addressed store, hash-verified

717 * Gets string name of given class.
718 */
719 static className<T>(classOrName: string | EntityName<T>): string {
720 if (typeof classOrName === 'string') {
721 return classOrName;
722 }
723
724 return classOrName.name as string;
725 }
726
727 static extractChildElements(items: readonly string[], prefix: string, allSymbol?: string): string[] {
728 return items

Callers 15

getCollectionNameMethod · 0.80
renderPartialIndexWhereFunction · 0.80
fromMethod · 0.80
getAliasForJoinPathMethod · 0.80
getNextAliasMethod · 0.80
joinReferenceMethod · 0.80
constructorMethod · 0.80
getPathMethod · 0.80
getTableNameMethod · 0.80
getLockSQLMethod · 0.80
extractTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected