Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

andreacris's avatar

Backpack and pivot table

Hi, I'm using backpack for a small project but I'm stuck. I have these tables:

  • colors:
    • id
    • name
  • products
    • id
    • name
  • color_product
    • color_id
    • product_id
    • category

Each product can have three categories of color and I want to store them in the pivot table when the user creates a new product with a form like this:

  • Product name (text field)
  • Color 01 (select2_multiple field)
  • Color 02 (select2_multiple field)
  • Color 03 (select2_multiple field) Do you if is it possible and eventually ho to make it?

Thanks

0 likes
1 reply

Please or to participate in this conversation.