Looking at the InheritanceUpdaterTrait (platform/InheritanceUpdaterTrait.php at 42c8e52ea24366f3f19da913356b3356fc9dac0a · shopware/platform · GitHub) I can see that it only creates a BINARY(16)
column and no KEY
or CONSTRAINT
.
- When I generate the schema with
./bin/console ...
I getKEY
andCONSTRAINT
SQL. - When I look at core entity tables in the DB (e.g.
customer_address.country
) I can see that there are keys and constraints defined.
What should I do?
- Use explicit SQL in my migration to create
KEY
s andCONSTRAINT
s instead of using$this-\>updateInheritance(...)
? - Use
$this-\>updateInheritance(...)
and just live withoutKEY
s andCONSTRAINT
s? - Do further investigation because I misunderstood how to associate my own entity to a core entity?