Joining related items.

Author Message

Daniel Guerrier

Tuesday 02 August 2005 7:17:09 pm

This may be a silly question.
I am creating my content classes and while normalizing I realized that there is no mention of how to create joins when extracting data from multiple content classes with a object relation between them.

If I had for example a set of songs in one content class which have a reference to the artist name in another content class, how would I get the artist name from the song.

Thx

Xavier Dutoit

Wednesday 03 August 2005 1:53:20 am

Hi,

I'm building a web site for my band mysleft (Yes I play in a band ;), and I solved the issue with this extension http://ez.no/community/contribs/datatypes/enhanced_objectrelation

See the trick at the bottom (reverse related), that's probably what you're looking for.

Tell us when your site is live.

Good luck.

X+

http://www.sydesy.com

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 00:27:06
Script start
Timing: Jan 19 2025 00:27:06
Module start 'layout'
Timing: Jan 19 2025 00:27:06
Module start 'content'
Timing: Jan 19 2025 00:27:06
Module end 'content'
Timing: Jan 19 2025 00:27:06
Script end

Main resources:

Total runtime0.6309 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.0084 589.0391152.6250
Module start 'layout' 0.00840.0059 741.664139.4453
Module start 'content' 0.01430.6154 781.1094518.8281
Module end 'content' 0.62960.0012 1,299.93758.1719
Script end 0.6309  1,308.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5895160.0002
Check MTime0.00150.2355160.0001
Mysql Total
Database connection0.00090.145510.0009
Mysqli_queries0.583392.4481540.0108
Looping result0.00050.0778520.0000
Template Total0.589193.420.2946
Template load0.00190.308420.0010
Template processing0.587293.071820.2936
Template load and register function0.00020.026810.0002
states
state_id_array0.00180.287410.0018
state_identifier_array0.00130.213820.0007
Override
Cache load0.00160.2477150.0001
Sytem overhead
Fetch class attribute can translate value0.00050.078020.0002
Fetch class attribute name0.00100.165030.0003
XML
Image XML parsing0.00060.091520.0003
class_abstraction
Instantiating content class attribute0.00000.001630.0000
General
dbfile0.00070.1063160.0000
String conversion0.00000.002740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs