Skip to content

Default value in child table/entity column decorator for multiple table inheritance is ignored for inherited columns #10563

@mellster2012

Description

@mellster2012

Issue description

For multiple table inheritance the parent column decorator/metadata is always used, though it's valid to override certain properties in the child entity colum deocrator for inherited columns

Expected Behavior

Default value should be configurable (distinct from parent column) for child tables for inherited columns for multiple table inheritance.

Actual Behavior

All the options from the parent column decorator are used for the inherited child column.

Steps to reproduce

See description/behavior.

My Environment

Dependency Version
Operating System
Node.js version 18.17.1
Typescript version 5.2.2
TypeORM version 0.3.16 & 0.3.17

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

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

Yes, I have the time, and I know how to start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions