dizzyd
dizzyd

Reputation: 201

Symfony2 - Creating a message forum

I am creating simple message forum for practice, but would like to solicit some guidance on how to setup the 'reply' to Post entity.

Presently, I have the Category (OneToMany/ManyToOne with post), User (OneToMany/ManyToOne with post), Post (ManytoOne to Category and User) entities.

Question:

My question is how would I go about setting up an entity for the 'replies' to the Post entity?

Can someone provide a simple example on how I would go about this?

Upvotes: 0

Views: 678

Answers (1)

Bartek
Bartek

Reputation: 1359

I don't think if there's need to reinvent the wheel. Use FOSMessageBundle to handle messaging. If you don't want to use their bundle you can just look at their code, which is a pretty good example IMO

Upvotes: 1

Related Questions