Project

General

Profile

Actions

Feature #53091

open

sys_category: Additional relation direction to get a categories assigned child-categories

Added by Jan Kornblum about 11 years ago. Updated 4 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Categorization API
Target version:
-
Start date:
2013-10-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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()

Actions #1

Updated by Philipp Gampe about 11 years ago

  • Category set to Miscellaneous
  • Status changed from New to Needs Feedback
  • Complexity set to easy

Are you referring to the extbase model?

Actions #2

Updated by Jan Kornblum about 11 years ago

Yes, i do.

Actions #3

Updated by Ernesto Baschny about 11 years ago

  • Category changed from Miscellaneous to Categorization API
  • Target version deleted (6.2.0)
Actions #4

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Needs Feedback to New
Actions #5

Updated by Mathias Schreiber almost 7 years ago

  • 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.

Actions #6

Updated by Jan Kornblum almost 7 years ago

  • 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...

Actions #7

Updated by Georg Ringer 4 months ago

  • Status changed from New to Rejected

I am closing this issue as it is not really possible from the core side as the children can be any record using categories like ttaddress,news, ....

i suggest to use your own implementation and maybe a extbase model is even the wrong thing and you need to use a custom implementation.

Actions #8

Updated by Georg Ringer 4 months ago

  • Status changed from Rejected to New

ah children as of category children, not attached records - sry

Actions

Also available in: Atom PDF