Search an objectrelation

Author Message

Pablo C. Vergara Castro

Monday 14 March 2005 7:24:36 am

Hi to all.

It is possible to search objects (using fetch('content','search'...) by an object relation attribute?

If it is... please tell me how to do it.

I Try to explain better:

I have a class called machine with many attributes: Name (textline), description (xmltext),... and one attribute ('kind of machine') is an objectrelation. Now my problem is that I'm trying to search objects using this attribute but I don't know how can I.

Can somebody help me?, maybe I'm trying something impossible?

Greetings and thanks in advance.

Xavier Dutoit

Monday 14 March 2005 10:39:46 am

Gabriel Ambuhel has added a search feature on the enhancedobjectrelation datatype:
http://www.ez.no/community/contribs/datatypes/enhanced_objectrelation

This does probably what you want.

Xavier

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 31 2025 04:25:42
Script start
Timing: Jan 31 2025 04:25:42
Module start 'layout'
Timing: Jan 31 2025 04:25:42
Module start 'content'
Timing: Jan 31 2025 04:25:43
Module end 'content'
Timing: Jan 31 2025 04:25:43
Script end

Main resources:

Total runtime0.0127 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.0049 588.1328151.2109
Module start 'layout' 0.00490.0023 739.343836.6484
Module start 'content' 0.00720.0042 775.992290.1406
Module end 'content' 0.01130.0014 866.132829.9922
Script end 0.0127  896.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002318.2414140.0002
Check MTime0.00108.1848140.0001
Mysql Total
Database connection0.00064.954310.0006
Mysqli_queries0.002217.427230.0007
Looping result0.00000.108610.0000
Template Total0.00108.210.0010
Template load0.00086.272010.0008
Template processing0.00021.882910.0002
Override
Cache load0.00054.310510.0005
General
dbfile0.00021.753880.0000
String conversion0.00000.059940.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