Doctrine2 Best Practice, Should Entities use Services?
I asked a similar question a while back: Using the Data Mapper Pattern, Should the Entities (Domain Objects) know about the Mapper? However, it was generic and I'm really interested in how to accomplish a few things with Doctrine2 specifically . Here's a simple example model: Each Thing can have a Vote from a User , a User may cast more than one Vote but only the last Vote counts. Because other data ( Msssage , etc) is related to the Vote , when the second Vote is placed the original Vote can't just be updated, it needs to be replaced. Currently Thing has this function: public function addVote