How to limit the number of relations

Author Message

Lionel PEYRON

Monday 21 January 2008 3:58:45 am

Hello all,

I defined a class with an attribute of the datatype <b>Object relations</b> with selection method <b>Template based, multi</b>. During an instantation of a new object of this class, I would like to limit the number of relations to 3 max... but I don't know how to do this (I'm a new user of ezpublish...).

Could someone give me a way to do this ?

Thanks a lot,

Bye

PS : sorry for my bad english...

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

Main resources:

Total runtime0.0178 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.0060 587.9141152.6250
Module start 'layout' 0.00600.0036 740.539139.4609
Module start 'content' 0.00970.0054 780.000085.1016
Module end 'content' 0.01510.0026 865.101630.3047
Script end 0.0177  895.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.8484140.0002
Check MTime0.00126.6270140.0001
Mysql Total
Database connection0.00095.271110.0009
Mysqli_queries0.003318.767530.0011
Looping result0.00000.152610.0000
Template Total0.002212.210.0022
Template load0.00126.629710.0012
Template processing0.00105.580310.0010
Override
Cache load0.00084.344910.0008
General
dbfile0.00031.610280.0000
String conversion0.00000.049540.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