Permalink
Browse files

fix(repository): use identifier property if defined

fixes [#294](#294)
  • Loading branch information...
mroseboom committed Jun 7, 2017
1 parent d88edc2 commit 197d18ea3b8bef149ad75ecb94c3e003f7507616
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/repository.js
@@ -255,7 +255,7 @@ export class Repository {
* @return {Entity}
*/
getNewEntity() {
return this.entityManager.getEntity(this.resource);
return this.entityManager.getEntity(this.identifier || this.resource);
}
/**

0 comments on commit 197d18e

Please sign in to comment.