ManyToMany relationship with no ID column and different column name

I was following this tutorial, and got to the moment where I should be able to add Articles with Tags. However, it does not work.

Instead of Articles, I have Products table with an ID column as a primary key.

My Tags table consists of a TITLE column as a primary key, and timestamp columns.

And my Product_tags table PRODUCT_ID and TAG as both primary and foreign keys with timestamp columns.

My question is, how to make this work, and if it is even possible?

maybe you can to through this doc about many-many : Associations - Linking Tables Together - 5.x

If you want to link many Products to many Tags, you will need a join-table like ProductsTags

1 Like