You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2020. It is now read-only.
I am trying to clear data from database table(entity). I tried using repository as well as entityManager for this but was unable to achieve this. Using Repository:
let repository = connection.getRepository(<entityName>);
repository.remove(<entityName>);
Error: Given object does not have a primary column, cannot transform it to database entity.
Using Entity Manager:
let manager = connection.createEntityManager();
manager.remove(<entityName>);
Error: RepositoryNotFoundError: No repository for "Function" was found. Looks like this entity is not registered in current "dbConnectionName" connection?
Any help?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to clear data from database table(entity). I tried using repository as well as entityManager for this but was unable to achieve this.
Using Repository:
Error: Given object does not have a primary column, cannot transform it to database entity.
Using Entity Manager:
Error: RepositoryNotFoundError: No repository for "Function" was found. Looks like this entity is not registered in current "dbConnectionName" connection?
Any help?
The text was updated successfully, but these errors were encountered: