I am working on a Web App using Symfony2 and I'd like to make a facebook friend request like system.
User "A" ask permission to user "B" to do something. User "B" should see a notification asking confirmation.
I asked my self what is a good way to do that. I though about creating an entity "request" whit User "A" (Object), User "B" (user_id field, using ManyToOne relation in Doctrine), Type (string) and Date field.
However, using object type will serialize the User "A". It seems a little heavy. And Using User "A" id instead of all object is not really Object Programming friendly.