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.

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

eZ debug

Timing: Jan 19 2025 07:19:59
Script start
Timing: Jan 19 2025 07:19:59
Module start 'layout'
Timing: Jan 19 2025 07:19:59
Module start 'content'
Timing: Jan 19 2025 07:20:00
Module end 'content'
Timing: Jan 19 2025 07:20:00
Script end

Main resources:

Total runtime1.1316 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.2734152.6406
Module start 'layout' 0.00440.0026 741.914139.4766
Module start 'content' 0.00701.1232 781.3906398.6406
Module end 'content' 1.13020.0014 1,180.03138.1406
Script end 1.1316  1,188.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2737160.0002
Check MTime0.00120.1092160.0001
Mysql Total
Database connection0.00080.068110.0008
Mysqli_queries1.095296.7818460.0238
Looping result0.00040.0370440.0000
Template Total1.103997.620.5520
Template load0.00260.226020.0013
Template processing1.101497.326220.5507
Template load and register function0.00020.016610.0002
states
state_id_array0.00100.086310.0010
state_identifier_array0.00070.058120.0003
Override
Cache load0.00180.161890.0002
Sytem overhead
Fetch class attribute can translate value0.00090.078410.0009
Fetch class attribute name0.00060.057310.0006
XML
Image XML parsing0.00010.010610.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00070.0586100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs