Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

feat: stop entity class inheritance #794

Merged
merged 3 commits into from
Jan 7, 2022
Merged

Conversation

anchan828
Copy link
Owner

If you create a History entity by inheriting from an entity class, the unique index that is generated via the decorator will also be copied.

To prevent this, the TypeORM source code must be modified, which is very expensive to implement.
A very simple and easy solution is to create a History entity without inheriting the entity. It will increase the amount of code without class inheritance, but it is reliable.

@anchan828 anchan828 merged commit 8108e3c into master Jan 7, 2022
@anchan828 anchan828 deleted the stop-class-inheritance branch January 7, 2022 15:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant