New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method `getNewIdentity` won't check if identifier decorator is used #294

mroseboom opened this Issue Jun 7, 2017 · 0 comments


None yet
1 participant

mroseboom commented Jun 7, 2017

Use case

  1. Register repository through the identifier decorator.
  2. Retrieve a list of entities.
  3. Try to remove one entity.
  4. Following error will be thrown: No transport found for '${this.getMeta().fetch('endpoint') || 'default'}'.

Overview of the Issue:
When the method getNewEntity is called, it doesn't check if you used the identifier decorator.

Library Name and Version(s)

Browsers and Operating System
All browsers

Suggest a Fix

   * Get a new instance for entityReference.
   * @return {Entity}
  getNewIdentity() {
    return this.entityManager.getEntity(this.identifier || this.resource);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment