The product model has a join table at cp_product_cp_product_attribute AND a FK from cp_product_attribute to cp_product. Per Devan, the join table is correct. Attached is a possible, but untested, patch.
Patch doesn't seem to work, the tables come out right but the join table no longer gets populated, hopefully someone can spot my mistake.
Also tried with no join table, just a mapped by, this time the join table disappeared from the schema, but again the join column on cp_product_attributes doesn't get populated...
Created attachment 434012 [details]
possible patch from Devan
Is the goal a 1-n product -> attribute or m-n product -> attribute?
Fixed for both product and pool attributes. Now uses a join column instead of a table as well. Should see that column in cp_product_attributes and cp_pool_attributes.
Group move of VERIFIED Candlepin component bugs to RELEASE_PENDING
I am closing out some old bugs from 2015. So, closing these out as current release. If this is still an issue for me, please reach out.