Why? fk_object or fk_product in tables llx_product_extrafields vs. llx_product_lang & llx_product_price

Hi

Why are the ForeignKey fields named different?
fk_object in these tables
llx_product_extrafields
llx_product_fournisseur_price_extrafields
llx_product_lot_extrafields

and fk_product in these tables?
llx_product_association
llx_product_attribute_combination
llx_product_attribute_combination_price_level
llx_product_attribute_value
llx_product_batch
llx_product_customer_price
llx_product_customer_price_log
llx_product_fournisseur_price
llx_product_fournisseur_price_log
llx_product_lang
llx_product_lot
llx_product_price
llx_product_price_by_qty
llx_product_stock
llx_product_warehouse_properties

question was answered on github

Would you mind to provide a link? Thanks!

sure @priojk llx_product_extrafields should probably also use fk_product by JonBendtsen · Pull Request #25742 · Dolibarr/dolibarr · GitHub

1 Like