1π
β
On that model design, you will have 2 tables in database:
yourapp_mytag
that will have primary key column (normal auto-increment column), all columns inherited fromTagBase
(as long asTagBase
is abstract) and column user β foreign key to model Useryourapp_mymptttag
tht will have primary key column that is also foreign key toMyTag
model and columns for mptt. There wonβt be any columns inherited fromMyTag
.
That means: there are no columns inherited from MyTag
in model MyMpttTag
, there are only references to actual columns in MyTag
.
In serialization there will be 2 type of objects: MyMpttTag
and MyTag
.
π€GwynBleidD
Source:stackexchange.com