mirror of
https://github.com/cupcakearmy/mikro-orm-arp.git
synced 2024-12-22 08:06:27 +00:00
comment
This commit is contained in:
parent
11e5891caf
commit
17eae1b647
@ -10,6 +10,7 @@ export abstract class BaseEntity {
|
|||||||
return orm.em.getRepository<T>(this)
|
return orm.em.getRepository<T>(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Native Functions
|
||||||
static count<T extends BaseEntity>(this: ObjectType<T>, ...args: Parameters<EntityRepository<T>['count']>): ReturnType<EntityRepository<T>['count']> {
|
static count<T extends BaseEntity>(this: ObjectType<T>, ...args: Parameters<EntityRepository<T>['count']>): ReturnType<EntityRepository<T>['count']> {
|
||||||
return (this as any).getRepo().count(...args)
|
return (this as any).getRepo().count(...args)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user