[TYPO3-mvc] webservice instead of database as data provider
Steffen Müller
typo3 at t3node.com
Tue Oct 12 17:59:57 CEST 2010
Hi.
On 12.10.2010 17:23 Martin Kutschker wrote:
> Why? The purpose of the repository is the persistence of domain objects.
The repository also serves to access data (e.g. findBy...), not only
persist data. It helps encapsulates storage and query.
> If you simply view data you
> don't need neither. Perhaps an smaller helper object makes life easier in FLUID but for starters a
> plain array passed to FLUID should be enough.
true as long as need only simple array data. If you have aggregate root
and want to add domain logic to the model data, a model object is
perfect place to do that.
--
cheers,
Steffen
TYPO3 Blog: http://www.t3node.com/
Microblog: http://twitter.com/t3node
More information about the TYPO3-project-typo3v4mvc
mailing list