[TYPO3-mvc] Get content elements from a page model
Thomas "Thasmo" Deinhamer
thasmo at gmail.com
Tue Jan 18 18:11:06 CET 2011
Franz Koch wrote:
> So probably add one getter/setter pair triggering a
> contentRepository->findByPage($this), or extend the TCA/DB.
Thanks for your replies - actually that's the question.
Should I invoke a repository (that would likely compare to 'lazy
loading') or should I extend the TCA of the pages table.
Extending the TCA seems cleaner when creating the model then,
because the member gets populated by Extbase automatically.
But extending the TCA therefor seems also 'unclean' for me.
So I'm not sure what's better - maybe there are some unknown,
hidden advantages when choosing one over the other solution.
Any further ideas/notes?
Thanks a bunch,
Thomas
More information about the TYPO3-project-typo3v4mvc
mailing list