Joining a new table with a UserList

Permalink 1 user found helpful
I wish to join a table with the UserList class.

I have tried addToQuery which does the join fine, but the columns are unaffected as a UserInfo object is returned.

I have tried to extend the UserList class but this fails as the parent class then forces all returned objects to be of type UserInfo.

I could extend ItemList or DatabaseItemList but this will add to my headaches because I will loose all the user filter functions in UserList

I am so close but so far I fear.

yolk
 
yolk replied on at Permalink Best Answer Reply
yolk
Success!

I copied the UserList class and it had this

class UserList extends Concrete5_Model_UserList


I changes this to

class UserList extends DatabaseItemList


This now bypasses the core UserList with force returns a UserInfo object.