Forums / Setup & design / attribute filter and related objects

attribute filter and related objects

Author Message

Marc Gibert Ginestà

Wednesday 10 December 2003 3:23:06 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.node_id, $related , $related.object and some other combinations but don't know what to match exactly.

Could someone help me?

Thanks in advance.