[TYPO3-mvc] Where to integrate logic for dependencies among objects - model or repository?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Dec 23 13:07:15 CET 2009
Hi Jochen,
> I wouldn't fetch it from a Repository. You don't have to persist it for
> later reuse, because it depends on many factors and might change
> rapidly. I would determine the price on the fly calling a
> Tx_..._Domain_Service_PriceCalculationService->calculatePriceFor($article,
> $country). As the article could be aware of the catalog it is related
> to, you have all the information in place.
so if I get you right, I should only use a repository for persisted
objects and if I don't need persistence simply use a service that's
returning according objects? Thus I would only need services/factories
for now as it seems.
Thanks a lot for your help.
--
kind regards,
Franz Koch
---------------------------------------------------
PayPal-Account: 'paypal _at_ elements-net _dot_ de'
---------------------------------------------------
More information about the TYPO3-project-typo3v4mvc
mailing list