Permalink
Browse files

feat(Scope): Allow getting default store

  • Loading branch information...
RWOverdijk committed Oct 8, 2016
1 parent 19d9e71 commit afe4e8a4e2432d0174071cad46eb4f1851119a9f
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/Scope.ts
@@ -138,8 +138,10 @@ export class Scope {
*
* @returns {Store}
*/
public getStore(entity: EntityInterface): Store {
return this.wetland.getStore(this.manager.getMapping(entity).getStoreName());
public getStore(entity?: EntityInterface): Store {
let storeName = entity ? this.manager.getMapping(entity).getStoreName() : null;
return this.wetland.getStore(storeName);
}
/**

0 comments on commit afe4e8a

Please sign in to comment.