Forums / Setup & design / Reverse fetch on multiple selection

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Reverse fetch on multiple selection

Author Message

paul bolger

Tuesday 30 November 2010 2:09:45 pm

Can anyone suggest a way to do this?

I have customised member objects: Bill and Ben. The objects have a selection attribute: apples, oranges, bananas - with multiple selections enabled.

I can fetch forwards easily: "Bill likes apples and bananas", but I can't figure out how to fetch in reverse: "Oranges are liked by Ben (only)".

Is there a sane way to achieve this, or should I just resort to related objects?

Paul Bolger

Peter Keung

Tuesday 30 November 2010 6:23:05 pm

3 options:

- eZ Find fetch
- Write an extended attribute filter
- Convert to an "Object relations" attribute (and potentially also use an extended attribute filter, depending on the sophistication of your fetching needs)

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada