Forums / Developer / How can I change ownership?

How can I change ownership?

Author Message

Jonathan Marsigny

Friday 21 January 2005 12:43:41 am

I read the forums.
I see it's difficult to change ownership.
Have you a trick or something like that?

Thanks a lot.

Balazs Halasy

Saturday 22 January 2005 12:40:07 am

Hi there,

I suppose you're wondering about how to change the owner/creator of an object. I'm afraid that this is not possible unless you dive in and hack the database manually.

Allman

Xavier Dutoit

Saturday 06 August 2005 11:14:46 pm

Hello,

Gabriel and I created a new extention "owner" that allows to change the owner of an object (with a GUI) on pubsvn.ez.no .

Xavier

http://www.sydesy.com

Franck Grenier

Wednesday 10 November 2010 8:38:23 am

Hello,

just do the following. It works for me on the last 4.4 :

// Get the owner from another object
$owner = $object->owner();
        
$next_object->setAttribute('owner_id', $owner->ID);
$next_object->store();

Developer at Open Wide