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.