3

Is there any way to change an inheriting entity's type (in the DB) to a different entity type?

Ella
  • 75
  • 5

1 Answers1

2

Convert entity with uid from OldType to NewType:

await em.update(OldType, { uid: uid }, {[entityTypeColumnName]: 'NewType'})
Ella
  • 75
  • 5