Forums / General / Attribute_filter on related objects

Attribute_filter on related objects

Author Message

Marc Gibert Ginestà

Friday 28 November 2003 8:27:13 am

Hi!

I'd like to filter a fetch based on a related object. So, I have attribute number 199 which stores the related object, but don't know what to put on the query part to match the value it has:

'attribute_filter',array('or',array(199,'=',$related.node_id),array(199,'=',$related.node_id)

I've tried with both $related , $related.object and some other combinations but don't know what to match exactly.

Could someone help me?

Thanks in advance.