new DAL\
ManyToOneAssociationField('topSellerSetNull', 'top_seller_set_null_id', 'product', 'id'
),
(new DAL\
ReferenceVersionField('product', 'top_seller_set_null_version_id'
))->
addFlags(new Required()),
new DAL\
FkField('top_seller_set_null_id', 'topSellerSetNullId', 'product', 'id'
),
(new DAL\
OneToManyAssociationField('linksRestrict', 'category', 'custom_entity_blog_links_restrict_id', 'id'
))->
addFlags(new DAL\Flag\
RestrictDelete()),
(new DAL\
OneToManyAssociationField('linksSetNull', 'category', 'custom_entity_blog_links_set_null_id', 'id'
))->
addFlags(new DAL\Flag\
SetNullOnDelete()),
(new DAL\
OneToManyAssociationField('comments', 'ce_blog_comment', 'custom_entity_blog_comments_id', 'id'
))->
addFlags(new DAL\Flag\
CascadeDelete()),
(new ManyToManyAssociationField('inheritedProducts', 'product', 'custom_entity_blog_inherited_products', 'custom_entity_blog_id', 'product_id', 'id', 'id'
))->
addFlags(new DAL\Flag\
CascadeDelete(),
new DAL\Flag\
ReverseInherited('customEntityBlogInheritedProducts'
)),
new FkField('inherited_top_seller_id', 'inheritedTopSellerId', 'product', 'id'
),
(new DAL\
ManyToOneAssociationField('inheritedTopSeller', 'inherited_top_seller_id', 'product', 'id'
))->
addFlags(new DAL\Flag\
ReverseInherited('customEntityBlogInheritedTopSeller'
)),
],
'custom_entity_blog_translation' =>
[ (new FkField('custom_entity_blog_id', 'customEntityBlogId', 'custom_entity_blog'
))->
addFlags(new Required(),
new PrimaryKey()),
(new FkField('language_id', 'languageId', 'language'
))->
addFlags(new Required(),
new PrimaryKey()),
(new DAL\
StringField('title', 'title'
))->
addFlags(new Required()),
(new DAL\
LongTextField('content', 'content'
))->
addFlags(new DAL\Flag\
AllowHtml()),
new DAL\
BoolField('display', 'display'
),
],