B
B
BonBon Slick2021-09-13 14:34:38
Doctrine ORM
BonBon Slick, 2021-09-13 14:34:38

Mapping two entities to 1 table for backwards compatibility?

Conditionally we have entity Member, NewMember.

The old code is deprecated but still used by the application and also has some common fields.

  1. You can do NewMember -> extends -> Member
  2. or NewMember | Member -> extends AbstractMember
  3. or just write everything over again and just specify the same table in the mapping.

if everything works, the old entity can be slowly cut out.

How would you make the development of a new model, an entity with backwards compatibility?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Derepko, 2021-09-13
@uDenX

If you are going to remove the Member, then obviously you need to make a new entity separately. For a while it will duplicate the old entity

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question