K
K
KOS_MOS2014-01-30 11:22:59
symfony
KOS_MOS, 2014-01-30 11:22:59

Symfony/Doctrine Many-To-Many Relationship Creation Dates

Let's say there are two entities - a blog entry and a user who put a plus or a minus on the blog posts, I want to know when the user put his rating (a hypothetical example, don't ask why.
It would be logical to have the corresponding field in the table with links, but nothing suitable for I did not find my requirements in Doctrine.The
solution is to create a third entity through which blog entries and users who have evaluated it will be connected, where I can add any other properties.I
am new to Symfony and Doctrine, tell me how best to do in this situation .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
silentvick, 2014-01-30
@silentvick

Create a third table that will store: score, user link, blog post link, and time. In order not to set the time "manually", you can use the Timestampable extension.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question