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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.