K
K
Kekoc2017-01-27 18:31:34
MySQL
Kekoc, 2017-01-27 18:31:34

Relationship of different objects to a similar table or two different Yii2 tables?

Hello. To have conditionally two different objects of the book and films in different tables. Each of these objects has a one-to-many relationship i.e. a movie can have a lot of links, and books can similarly, how to optimally implement the architecture so as not to duplicate the "links" table, where each one will refer to films in the first case and books in the second?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question