fetch related objects filter by class

Author Message

Nick Olaros

Thursday 14 December 2006 8:35:27 am

Hi,

I would like to fetch the related objects to a node. It's working fine except the fact that I want to limit this fetch to a given class.
Is there a way to do that ?
Same issue with a reverse related object fetch.

Thanks
Nicos

Found a workaround... Forced my relation to be at an attribute level in which I force the related objects's class

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 18 2025 22:32:34
Script start
Timing: Jan 18 2025 22:32:34
Module start 'layout'
Timing: Jan 18 2025 22:32:34
Module start 'content'
Timing: Jan 18 2025 22:32:34
Module end 'content'
Timing: Jan 18 2025 22:32:34
Script end

Main resources:

Total runtime0.0260 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.1484152.6406
Module start 'layout' 0.00500.0030 741.789139.4766
Module start 'content' 0.00800.0154 781.265685.2266
Module end 'content' 0.02340.0025 866.492230.3047
Script end 0.0259  896.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.0769140.0002
Check MTime0.00124.6765140.0001
Mysql Total
Database connection0.00052.061310.0005
Mysqli_queries0.002710.422330.0009
Looping result0.00000.050510.0000
Template Total0.00207.610.0020
Template load0.00103.701910.0010
Template processing0.00103.914110.0010
Override
Cache load0.00072.635410.0007
General
dbfile0.006926.747480.0009
String conversion0.00000.026640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs