relation list and version

Author Message

Fred Gueho

Tuesday 02 May 2006 9:24:37 am

Hi,

When I use a relation list in a custom object to insert a .pdf file, here what I see in the database for the 'datatext' field of my object in 'ezcontentobject_attribute' table :

<?xml version="1.0" encoding="UTF-8"?>
<related-objects>
<relation-list>
<relation-item priority="1"
contentobject-id="491"
contentobject-version="1"
node-id="484"
parent-node-id="53"
contentclass-id="12"
contentclass-identifier="file" />
</relation-list>
</related-objects>

Which is ok.

But when I update my .pdf object, the version change. Which is normal.

And when I go again in the database, the datatext of the object in my relation list hasn't changed :

<?xml version="1.0" encoding="UTF-8"?>
<related-objects>
<relation-list>
<relation-item priority="1"
contentobject-id="491"
contentobject-version="1"
node-id="484"
parent-node-id="53"
contentclass-id="12"
contentclass-identifier="file" />
</relation-list>
</related-objects>

The contentobject-version is still 1 where it should be 2 (or 3, or 4, ...).

So, I can deduce that the datatext of a relation list is not updated !!!!

Is it normal ?

Fred Gueho

Wednesday 03 May 2006 8:32:54 am

No idea ? Anyone ?

Kristof Coomans

Wednesday 03 May 2006 9:00:08 am

This is normal. I don't think it will harm.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Fred Gueho

Thursday 04 May 2006 5:30:56 am

Yes I did install ez3.8. And it happens with the "plain site" choice.

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 30 2025 21:45:05
Script start
Timing: Jan 30 2025 21:45:05
Module start 'layout'
Timing: Jan 30 2025 21:45:05
Module start 'content'
Timing: Jan 30 2025 21:45:05
Module end 'content'
Timing: Jan 30 2025 21:45:05
Script end

Main resources:

Total runtime0.0235 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.0057 588.2344151.2109
Module start 'layout' 0.00570.0045 739.4453220.6875
Module start 'content' 0.01020.0113 960.1328997.8203
Module end 'content' 0.02150.0020 1,957.953133.9922
Script end 0.0234  1,991.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.9457140.0002
Check MTime0.00114.6175140.0001
Mysql Total
Database connection0.00083.304710.0008
Mysqli_queries0.003615.304330.0012
Looping result0.00000.170610.0000
Template Total0.00156.310.0015
Template load0.00093.908810.0009
Template processing0.00062.389010.0006
Override
Cache load0.00062.682410.0006
General
dbfile0.00083.220580.0001
String conversion0.00000.042640.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