Enhanced Object Relation problem?

Author Message

eric l

Sunday 20 November 2005 2:17:54 pm

So I have a class MEASURE with a float attribute QUANTITY and an enhancedobjectrelation attribute MEASURE_TYPE.

I set the Object Pattern Name to: <QUANTITY> <MEASURE_TYPE>
but whenever I create a new MEASURE object I just see QUANTITY as the object name. This is a problem for me because I have multiple MEASURES that have the same quantity but are different types and I need to be able to tell what type they are just by the name.

Is there anything I can do to fix this problem?

Gabriel Ambuehl

Monday 21 November 2005 2:00:49 am

I thought I had added that feature at some point. How badly do you need it (and by what time frame)?

Visit http://triligon.org

Xavier Dutoit

Monday 21 November 2005 2:53:08 am

Hi,

Have a look at your extension/enhancedobjectrelation/datatypes/ezenhancedobjectrelation/ezenhancedobjectrelationtype.php

The function line 733 is the one Gabriel has written.

function title( &$contentObjectAttribute )

That's a feature you're a handful to use, maybe it doesn't work with some version of ez. Are you able to dig a wee bit more and try to debug it ?

X+

http://www.sydesy.com

eric l

Monday 21 November 2005 8:03:02 am

I am available to dig and debug. The function you refer to is 9 lines farther along in my copy of enhancedobjectrelation, perhaps I don't have the latest version? I downloaded it slightly less than a month ago though.

I'm running ez 3.7.2

Xavier Dutoit

Monday 21 November 2005 8:24:28 am

Hi,

That's always a good idea to get the extension from pubsvn (that's more at the cutting edge), especially if you're willing to debug.

This being said, that's to my knowledge the only short function involved to set the name. Let's check with the one that wrote this feature if I'm missing something.

Gabriel, if you hear us...

X+

http://www.sydesy.com

eric l

Monday 21 November 2005 8:44:35 am

I can try the pubsvn version, how stable is it? I'll check it out and see if the name works as expected.

eric l

Monday 21 November 2005 8:56:42 am

Ok, looks like the pubsvn revision 796 works as expected. Hooray! Looks like the downloaded version is a bit behind at 684 (at least that is what is shown when going to: http://pubsvn.ez.no/viewcvs/community/trunk/extension/enhancedobjectrelation/) Anyway thanks for being so responsive! I'll let you know if I see any wacky behavior with the 796 revision.

Gabriel Ambuehl

Monday 21 November 2005 10:29:14 am

There's one known thing: if you use Images in the related object and try to create new ones, weirdness ensues. Haven't had the time to dig into that so far.

Visit http://triligon.org

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 31 2025 06:24:26
Script start
Timing: Jan 31 2025 06:24:26
Module start 'layout'
Timing: Jan 31 2025 06:24:26
Module start 'content'
Timing: Jan 31 2025 06:24:26
Module end 'content'
Timing: Jan 31 2025 06:24:26
Script end

Main resources:

Total runtime0.0134 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1563151.2109
Module start 'layout' 0.00530.0028 739.367236.6484
Module start 'content' 0.00810.0039 776.015698.1563
Module end 'content' 0.01200.0013 874.171937.9922
Script end 0.0133  912.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.5428140.0002
Check MTime0.00118.3637140.0001
Mysql Total
Database connection0.00075.358710.0007
Mysqli_queries0.002619.282730.0009
Looping result0.00000.119610.0000
Template Total0.00107.810.0010
Template load0.00086.167010.0008
Template processing0.00021.565010.0002
Override
Cache load0.00064.363010.0006
General
dbfile0.00031.889780.0000
String conversion0.00000.066040.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