Paging reverse_related_objects

Author Message

Ivo Lukac

Thursday 15 January 2009 1:41:34 am

Is there a way?

Btw objects are related over multiple object relation list so simple fetch is not enough.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

André R.

Thursday 15 January 2009 5:18:30 am

There is a way in 4.1:
http://issues.ez.no/IssueView.php?Id=12651&activeItem=22

For 4.0.x and lower you'll have to write a custom fetch function or use offset and max parameters on the foreach loop function when you loop over the relations.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 04:23:43
Script start
Timing: Jan 19 2025 04:23:43
Module start 'layout'
Timing: Jan 19 2025 04:23:43
Module start 'content'
Timing: Jan 19 2025 04:23:44
Module end 'content'
Timing: Jan 19 2025 04:23:44
Script end

Main resources:

Total runtime0.8503 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 590.2734152.6250
Module start 'layout' 0.00550.0027 742.898439.4609
Module start 'content' 0.00820.8408 782.3594533.6250
Module end 'content' 0.84900.0012 1,315.98448.3203
Script end 0.8503  1,324.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3707160.0002
Check MTime0.00130.1529160.0001
Mysql Total
Database connection0.00090.103310.0009
Mysqli_queries0.810195.2734540.0150
Looping result0.00040.0515520.0000
Template Total0.821796.620.4109
Template load0.00200.239320.0010
Template processing0.819796.398120.4098
Template load and register function0.00010.011310.0001
states
state_id_array0.00100.123210.0010
state_identifier_array0.00130.150720.0006
Override
Cache load0.00160.1908110.0001
Sytem overhead
Fetch class attribute can translate value0.00040.052920.0002
Fetch class attribute name0.00100.117540.0002
XML
Image XML parsing0.00100.118020.0005
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00080.0889240.0000
String conversion0.00000.001440.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs