Let's start with the comments. Visitors to our blog should be able to react to our posts. We have to create a new
Comment Doctrine entity type storing the reader's comments.
Comment entities will be linked to one
Post entity. One post can have many comments, and one comment is associated with a sole post.
The following E-R diagram represents the MySQL schema that will be generated using mapping information:
Comment entity has the following four properties:
id: This is a unique identifier of the comment
body: This represents ...