We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
store.$repo
repository.repo
1 parent a7fe58a commit ff9a990Copy full SHA for ff9a990
src/repository/Repository.ts
@@ -88,9 +88,7 @@ export class Repository<M extends Model = Model> {
88
repo<M extends Model>(model: Constructor<M>): Repository<M>
89
repo<R extends Repository<any>>(repository: Constructor<R>): R
90
repo(modelOrRepository: any): any {
91
- return modelOrRepository._isRepository
92
- ? new modelOrRepository(this.store).initialize()
93
- : new Repository(this.store).initialize(modelOrRepository)
+ return this.store.$repo(modelOrRepository)
94
}
95
96
/**
0 commit comments