"relations" in definition function ... HOW ?!

Author Message

Selmah Maxim

Saturday 09 August 2003 8:26:31 am

I need to make multi select or relations .. I found this in ezproductcollectionitem.php .. but I cann`t figure it out how to use .. I need some document about this ..plz !

"relations" => array( "contentobject_id" => array( "class" => "ezcontentobject",
"field" => "id" ),
"productcollection_id" => array( "class" => "ezproductcollection",
"field" => "id" ) ),

Piotrek Karaƛ

Thursday 26 November 2009 10:36:12 pm

Wow! This one has been awaiting response for a looong time ;)

Let's rephrase it: Is there any reason to use 'relations' key of the definition of a PHP class inhering from eZPersistentObject other than being able to insert NULL value in case of no relation?

Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 13:54:11
Script start
Timing: Jan 19 2025 13:54:11
Module start 'layout'
Timing: Jan 19 2025 13:54:11
Module start 'content'
Timing: Jan 19 2025 13:54:11
Module end 'content'
Timing: Jan 19 2025 13:54:11
Script end

Main resources:

Total runtime0.6117 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.0055 589.1797152.6250
Module start 'layout' 0.00550.0029 741.804739.4453
Module start 'content' 0.00850.6018 781.2500523.5781
Module end 'content' 0.61020.0014 1,304.82818.1406
Script end 0.6117  1,312.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4953160.0002
Check MTime0.00120.2029160.0001
Mysql Total
Database connection0.00100.159610.0010
Mysqli_queries0.570793.2991540.0106
Looping result0.00050.0754520.0000
Template Total0.582295.220.2911
Template load0.00200.326820.0010
Template processing0.580294.847020.2901
Template load and register function0.00020.027210.0002
states
state_id_array0.00140.223410.0014
state_identifier_array0.00090.152020.0005
Override
Cache load0.00160.2669140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.085220.0003
Fetch class attribute name0.00090.153830.0003
XML
Image XML parsing0.00150.251320.0008
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00330.5454170.0002
String conversion0.00000.001340.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs