Differences between related object types (Attribue Vs Normal)

Author Message

Bruce Morrison

Thursday 27 May 2004 1:36:35 am

There seems to be a difference between a related object attribute and a the normal related object that is part of every object.

For the normal related objects the variable $node.object.current.reverse_related_object_list is set which makes it possible to create a link back to the relating object(s).

When you use a related object attribute this variable does not get set and there does not appear to be any way to find the relating objects without doing another fetch.

I'm using 3.4 beta 2 to test this and am wondering if this is a just an issue with the beta version. If not is there any reason why the related object attribute behaves differently than the normal related objects?

Cheers
Bruce http://www.designit.com.au

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Bruce Morrison

Monday 31 May 2004 9:13:23 pm

I've investigated this with version 3.3-5 and the same behaviour occurs (i.e. $node.object.current.reverse_related_object_list doesn't get set for related object attributes). This behavious is consistant for both related object and related object list attributes.

It would be very helpful it the related object attributes work in the same manor as the generic related object content type.

I'll log this as a bug.

Cheers
Bruce http://www.designit.com.au

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 18:26:16
Script start
Timing: Jan 18 2025 18:26:16
Module start 'layout'
Timing: Jan 18 2025 18:26:16
Module start 'content'
Timing: Jan 18 2025 18:26:17
Module end 'content'
Timing: Jan 18 2025 18:26:17
Script end

Main resources:

Total runtime0.8600 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1641152.6563
Module start 'layout' 0.00490.0040 740.820339.5078
Module start 'content' 0.00890.8496 780.3281489.0156
Module end 'content' 0.85850.0014 1,269.343812.0938
Script end 0.8600  1,281.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3946160.0002
Check MTime0.00130.1552160.0001
Mysql Total
Database connection0.00080.090910.0008
Mysqli_queries0.814694.7172520.0157
Looping result0.00050.0602500.0000
Template Total0.828596.320.4142
Template load0.00230.270120.0012
Template processing0.826296.063020.4131
Template load and register function0.00010.009010.0001
states
state_id_array0.00090.108510.0009
state_identifier_array0.00080.090620.0004
Override
Cache load0.00190.2171170.0001
Sytem overhead
Fetch class attribute can translate value0.00040.049310.0004
Fetch class attribute name0.00090.105330.0003
XML
Image XML parsing0.00040.043510.0004
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00080.0920160.0000
String conversion0.00000.001240.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs