Forums / Developer / How to fetch related_object but not grouped

How to fetch related_object but not grouped

Author Message

Luc Chase

Thursday 05 July 2007 4:58:04 am

{def $related_objects = fetch( 'content', 'related_objects',  
        hash( 'object_id', $node.object.id, 
        'all_relations', true(), 
        'group_by_attribute', true(),
        'class_filter_type',  $class_filter_type,
        'class_filter_array', $class_filter_array,
        'sort_by', $sort_by ) )}

The above code returns a grouped list. I don't want it grouped (just sorted). I've tried to set 'group_by_attribute', false(), but that results in zero rows. What exactly does 'group_by_attribute', do and does it actually work?

The Web Application Service Provider

eZ debug

Timing: Jan 18 2025 21:14:08
Script start
Timing: Jan 18 2025 21:14:08
Module start 'content'
Timing: Jan 18 2025 21:14:08
Module end 'content'
Timing: Jan 18 2025 21:14:08
Script end

Main resources:

Total runtime0.0201 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.8438180.8125
Module start 'content' 0.00750.0054 768.656389.8516
Module end 'content' 0.01290.0072 858.507866.7031
Script end 0.0201  925.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002311.4001120.0002
Check MTime0.00105.1496120.0001
Mysql Total
Database connection0.00105.143710.0010
Mysqli_queries0.003316.355540.0008
Looping result0.00010.303120.0000
Template Total0.006733.110.0067
Template load0.00094.448810.0009
Template processing0.005828.570110.0058
Override
Cache load0.00063.107510.0006
General
dbfile0.00115.4597100.0001
String conversion0.00000.040230.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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