$expected =
[ 'category' =>
[ (new FkField('custom_entity_blog_links_set_null_id', 'customEntityBlogLinksSetNullId', 'custom_entity_blog', 'id'
))->
addFlags(new Extension()),
(new ManyToOneAssociationField('customEntityBlogLinksSetNull', 'custom_entity_blog_links_set_null_id', 'custom_entity_blog', 'id'
))->
addFlags(new Extension()),
(new FkField('custom_entity_blog_links_restrict_id', 'customEntityBlogLinksRestrictId', 'custom_entity_blog', 'id'
))->
addFlags(new Extension()),
(new ManyToOneAssociationField('customEntityBlogLinksRestrict', 'custom_entity_blog_links_restrict_id', 'custom_entity_blog', 'id'
))->
addFlags(new Extension()),
],
'custom_entity_blog' =>
[ (new IdField('id', 'id'
))->
addFlags(new PrimaryKey(),
new Required()),
new DAL\
FloatField('rating', 'rating'
),
new DAL\
TranslatedField('title'
),
new DAL\
TranslatedField('content'
),
new DAL\
TranslatedField('display'
),
new DAL\
JsonField('payload', 'payload'
),
new DAL\
EmailField('email', 'email'
),
(new DAL\
TranslationsAssociationField('custom_entity_blog_translation', 'custom_entity_blog_id', 'translations', 'id'
))->
addFlags(new Required()),
(new DAL\
ManyToManyAssociationField('products', 'product', 'custom_entity_blog_products', 'custom_entity_blog_id', 'product_id', 'id', 'id'
))->
addFlags(new DAL\Flag\
CascadeDelete()),
new DAL\
OneToOneAssociationField('linkProductRestrict', 'link_product_restrict_id', 'id', 'product'
),
(new DAL\
ReferenceVersionField('product', 'link_product_restrict_version_id'
))->
addFlags(new Required()),