When I edit the order in the admin, a version is created. I get a version clone commit for each order table. Now I found an entity with an association to an order that is not part of the clone. I noticed that the relation from that entity to the order is version aware but the entity itself is not version aware. Do I need to make it version aware as well so the order clone and later merge works? Because right now the merge is broken due to FK issues and I assume it misses a clone in the first place.
TL:DR; what are important parts in entity definitions to check when one want to support order editing in admin (which triggers version create and merge)?
Here is the entity definition in question that somehow is not part of version cloning of orders:
(new IdField('id', 'id'))->addFlags(new ApiAware(), new PrimaryKey(), new Required()),
(new FkField('order_id', 'orderId', OrderDefinition::class))->addFlags(new ApiAware(), new Required()),
(new ReferenceVersionField(OrderDefinition::class, 'order_version_id'))->addFlags(new ApiAware(), new Required()),
// ... entity content
(new CustomFields())->addFlags(new ApiAware()),
(new ManyToOneAssociationField('order', 'order_id', OrderDefinition::class, 'id', false))->addFlags(new ApiAware()),