Feature #53091
open
sys_category: Additional relation direction to get a categories assigned child-categories
Added by Jan Kornblum over 10 years ago.
Updated over 6 years ago.
Category:
Categorization API
Description
Each category object has a relation to its parent category. It would be very nice to have such a relation in the opposite direction, too: $category->getChildren()
- Category set to Miscellaneous
- Status changed from New to Needs Feedback
- Complexity set to easy
Are you referring to the extbase model?
- Category changed from Miscellaneous to Categorization API
- Target version deleted (
6.2.0)
- Status changed from Needs Feedback to New
- Status changed from New to Closed
AFAICS this cannot be implemented without tightly bundling the Repository to the Model.
If you need this functionality, you can use CategoryRepository->findByParent.
- Status changed from Closed to New
Are you sure? I believe it is just neccessary to create this bidirectional relation as common by making the columns / properties available in ext_tables, tca and the model. No need to do anything in the repository as extbase fills the properties automatically. I think i've done so in any project using my own categories model but i just can't find it anymore to post an example here...
Also available in: Atom
PDF