K
K
Konstantin Zhikhor2019-07-03 11:22:41
symfony
Konstantin Zhikhor, 2019-07-03 11:22:41

How do I make a table in symfony 4?

Please help me to make a table in symfony 4 with fields idcompany, idproduct, is_default, is_forced
In essence, this is a many-to-many table where companies can have many products and products can have many companies. there would be no problems if there were not these two fields is_default, is_forced. How can I make such a table and how can I also enter values ​​into the last two fields?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kafkiansky, 2019-07-03
@mad_maximus

Sounds like a question not about the symphony, but about the front.

A
Alexander, 2019-07-03
@Minifets

You can create a 3rd entity: CrossCompanyProduct for example.
Company <- one-to-many -> Cross <- many-to-one -> Product .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question