Where to place logic in a rich domain model
Posted
by Fino
on Stack Overflow
See other posts from Stack Overflow
or by Fino
Published on 2010-05-08T09:49:17Z
Indexed on
2010/05/08
9:58 UTC
Read the original article
Hit count: 171
domain-model
|php
I have a model "news item" which contains text, image etc to display as latest news on several pages in a website. This "news item" can also be posted to Twitter or Facebook. Is it clean to implement a method post inside the news item model and inject the different post implementations as a strategy? Or is it better to have a separate application service for this?
Thanks
© Stack Overflow or respective owner