Forums / Setup & design / Enhanced Object Relation problem?

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