Permalink
Browse files

feat(EntityRepository): expose mapping

  • Loading branch information...
RWOverdijk committed Feb 20, 2017
1 parent babe5f7 commit b59ec8e9a2bffc67215b1fbf4da05cb248371212
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/EntityRepository.ts
@@ -36,6 +36,15 @@ export class EntityRepository<T> {
this.mapping = Mapping.forEntity(entity);
}
/**
* Get mapping for the entity this repository is responsible for.
*
* @returns {Mapping}
*/
public getMapping(): Mapping<T> {
return this.mapping;
}
/**
* Get a reference to the entity manager.
*

0 comments on commit b59ec8e

Please sign in to comment.