Can't fetch custom user objects?

Author Message

Siniša Šehović

Monday 20 November 2006 2:04:30 am

Hi

I have a custom user class and I can't fetch objects of that class.

$nodes =& eZContentObjectTreeNode::subTree(
                 array(
                    'ClassFilterType' => 'include',
                    'ClassFilterArray' => array( 16 )
                        ),
                       60
                         );

NodeID of user_group is 60.

Strange is this, if I change ClassFilterArray to 4 (default user class) fetch return objects?!?

What could be the problem?

I am using ez 3.8.6 and mysql.

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Xavier Dutoit

Monday 20 November 2006 2:32:10 am

Hi Sinisa,

Stupid questions:

Are you sure the current user has the right to read the custom user class ?

Also, are they under the node 60 (both users) ?

on your parameters array, add a limitations=array() to skip the access right control (might help).

X+

http://www.sydesy.com

Siniša Šehović

Monday 20 November 2006 3:05:36 am

Hi Xavier

Thanx for tip.

Anonymous user have read access to custom class.

Under the node 60 are both users.

Fetch is not working ( I have put 'Limitations' =>array() )

Please help!

S.

---
If at first you don't succeed, look in the trash for the instructions.

Siniša Šehović

Monday 20 November 2006 6:44:24 am

Hi Xavier

I think I have problem with my database data.

For test I have dropped custom user class, recreated and imported users.
Now I can fetch ...

BUT with remove of class my objects lost information about owners.

How to recreate information?

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Siniša Šehović

Monday 27 November 2006 6:06:52 am

Problem solved after adding Language parameter in fetch.

S.

---
If at first you don't succeed, look in the trash for the instructions.

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

Main resources:

Total runtime0.6366 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.1484152.6406
Module start 'layout' 0.00490.0021 741.789139.4766
Module start 'content' 0.00700.6279 781.2656564.3984
Module end 'content' 0.63490.0016 1,345.664116.1406
Script end 0.6365  1,361.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5036160.0002
Check MTime0.00120.1948160.0001
Mysql Total
Database connection0.00060.087810.0006
Mysqli_queries0.569989.5254630.0090
Looping result0.00070.1067610.0000
Template Total0.612096.120.3060
Template load0.00150.234820.0007
Template processing0.610595.911020.3053
Template load and register function0.00010.015910.0001
states
state_id_array0.00070.114310.0007
state_identifier_array0.00150.229720.0007
Override
Cache load0.00130.2084440.0000
Sytem overhead
Fetch class attribute can translate value0.00110.174220.0006
Fetch class attribute name0.00140.222170.0002
XML
Image XML parsing0.00100.154820.0005
class_abstraction
Instantiating content class attribute0.00000.0041100.0000
General
dbfile0.00110.1762210.0001
String conversion0.00000.001240.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs