Permalink
Browse files

fix(EntityRepository): check for null

  • Loading branch information...
RWOverdijk committed Jan 15, 2017
1 parent fe148a3 commit d3607a7317b095aca54a563bed986b3a769c1d7a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/EntityRepository.ts
@@ -95,7 +95,7 @@ export class EntityRepository<T> {
if (options.populate === true) {
let relations = this.mapping.getRelations();
if (typeof relations === 'object') {
if (typeof relations === 'object' && relations !== null) {
options.populate = Reflect.ownKeys(relations);
}
} else if (typeof options.populate === 'string') {

0 comments on commit d3607a7

Please sign in to comment.