[TYPO3-english] Extbase: Get selected childs from relation
Mikel
lists at con-version.com
Fri Sep 13 12:38:39 CEST 2013
Hi all,
I have two models related to each other:
* Model Document
* Model DocumentCategory
The relation is 1:n from DocumentCategory to Document.
The DocumentCategoryRepositories returns all existing Categories with
all related Documents:
Category 1
- Document 1
- Document 2
- Document Z
Category 2
- Document Y....
Is it possible to get only selected documents attached to a category?
For example, the newest one? Do I need to define a special getter for
that? Or do I need to detach all relations first and attach only a
selected document to its category?
Thanks in advance for any hints...
Mikel
More information about the TYPO3-english
mailing list