Skip to content

When using DeleteDateColumn relations eager loading stops working #9581

Closed

Description

@adrian-afl

Issue Description

When using DeleteDateColumn decorator to support soft-deleting, eager relations loading stops working even if relation is specifically requested.

Expected Behavior

When DeleteDateColumn is used, nothing else changes in the behavior of the ORM

Actual Behavior

When DeleteDateColumn is used, eagerly loading relations fails

Steps to Reproduce

Here is a repo I have prepared reproducting this issue:
https://github.com/adrian-afl/typeorm-deletedat-issue-reconstruction
Steps to run it are inside the repo, its a very simple project, containing the least amount of code required to show the issue.
There are "Good" and "Bad" entities there and the only difference is usage of DeleteDateColumn.
TestIssue.spec.ts is the test file that reproduces the issue clearly.

My Environment

See reproduction step to see the whole project

Additional Context

See reproduction step to see the whole project

Relevant Database Driver(s)

DB Type Reproducible
aurora-mysql no
aurora-postgres no
better-sqlite3 no
cockroachdb no
cordova no
expo no
mongodb no
mysql no
nativescript no
oracle no
postgres yes
react-native no
sap no
spanner no
sqlite no
sqlite-abstract no
sqljs no
sqlserver no

Are you willing to resolve this issue by submitting a Pull Request?

  • ✖️ Yes, I have the time, and I know how to start.
  • ✅ Yes, I have the time, but I don't know how to start. I would need guidance.
  • ✖️ No, I don’t have the time, but I can support (using donations) development.
  • ✖️ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

Activity

  1. github-actions commented on Sep 18, 2025

    @github-actions

    TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).

    As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.

    🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
    If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions