Object relations?

Author Message

Trond Åge Kvalø

Tuesday 24 February 2004 2:27:50 am

Has anyone worked with object relations? I'm trying to understand this concept and I can't seem to find any documentation about this datatype.

What I'm trying to do is to create a "course license" by creating a relation between user objects and course objects.

For a user to be able to run a course there should be a relation between the user and the course.

Is the object relation suitable for this type of problem or are there other mechanisms that would work better?

I've managed to create a relation between one course and one user, but one course should have relations to many users. How would I do that?

If someone has a deeper understanding of the object relations system I'd be most gratefull for any guidance on how this stuff works.

best regards
trondåge

trondåge

Trond Åge Kvalø

Tuesday 24 February 2004 2:36:54 am

I've tried the object relation list but then I can only create new users, not select from already created users. (Don't know if this makes sense...)

I feel I'm fumbling in the dark here, all contributions that can shed a bit of light is warmly appreciated.

best regards
trondåge

trondåge

Paul Forsyth

Tuesday 24 February 2004 7:03:59 am

Which version of eZ are you using. I would recommend using an object relation list within 3.3 for this. Which datatype are you using?

paul

Trond Åge Kvalø

Wednesday 25 February 2004 2:25:16 pm

Hi Paul!

Thanks for the reply.

We're using 3.2-4 and unless someone can give some very good reasons to upgrade I don't think we will. Not yet.

It seems though as the object relations might be a good reason, but I'm also looking into creating a separate table for storing licenses and use my own module to handle them.

If you could tell me more about the object relation versus related objects and the object relation list in 3.3 I'd be most grateful.

best regards
trondåge

trondåge

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 21:01:21
Script start
Timing: Jan 18 2025 21:01:21
Module start 'layout'
Timing: Jan 18 2025 21:01:21
Module start 'content'
Timing: Jan 18 2025 21:01:22
Module end 'content'
Timing: Jan 18 2025 21:01:22
Script end

Main resources:

Total runtime0.7030 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 591.3203152.6094
Module start 'layout' 0.00510.0025 743.929739.4141
Module start 'content' 0.00760.6940 783.3438507.6641
Module end 'content' 0.70160.0014 1,291.007812.1875
Script end 0.7030  1,303.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4238160.0002
Check MTime0.00120.1767160.0001
Mysql Total
Database connection0.00080.119610.0008
Mysqli_queries0.653192.8928600.0109
Looping result0.00060.0800580.0000
Template Total0.666994.920.3335
Template load0.00330.464420.0016
Template processing0.663794.397520.3318
Template load and register function0.00030.036810.0003
states
state_id_array0.00110.152110.0011
state_identifier_array0.00070.098720.0003
Override
Cache load0.00180.2495270.0001
Sytem overhead
Fetch class attribute can translate value0.00070.105820.0004
Fetch class attribute name0.00080.111840.0002
XML
Image XML parsing0.00030.043020.0002
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00070.0975100.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs