[TYPO3-mvc] Using ObjectStorage properly
Felix Oertel
mehl at foertel.com
Thu May 6 17:34:54 CEST 2010
hey,
just try it out. ;-)
Am 06.05.10 16:21, schrieb S.Korth:
> i don't understand why this works without a repository.
because the persistence layer cares for you and mapps stuff into place.
> I thought this is the only way to get data out of database. Or is it just cause of the MVC pattern ?
You need a repository if you want to do more funny things. ;-) Like
"just give me the newest 10 items", "give me 5 random items" or "give me
5 items from 4 different tables"
If you just want to get all items matching the TCA defined relation (you
can apply order and enableColumns here as well) the extbase datamapper
will do the job for you.
regards, foertel
More information about the TYPO3-project-typo3v4mvc
mailing list