Skip to content
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

fix: Use concrete subclass for saving with single table inheritance #8819

Merged
merged 1 commit into from
Apr 2, 2022

Commits on Mar 30, 2022

  1. fix: save correct discriminator with STI

    When using a STI scheme and an EntityManager or Repository
    with base class target, the wrong discriminator was written to the
    database despite giving an concrete entity.
    This was because of the entity's target being ignored in favor of the
    target of the Repository or the EntityManager.
    
    fixes typeorm#2927
    felix-gohla committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    f4f67c8 View commit details
    Browse the repository at this point in the history