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

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 30 2025 19:40:44
Script start
Timing: Jan 30 2025 19:40:44
Module start 'layout'
Timing: Jan 30 2025 19:40:44
Module start 'content'
Timing: Jan 30 2025 19:40:45
Module end 'content'
Timing: Jan 30 2025 19:40:45
Script end

Main resources:

Total runtime0.8804 sec
Peak memory usage8,192.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1328151.2109
Module start 'layout' 0.00530.0040 739.3438220.6875
Module start 'content' 0.00930.8703 960.03134,520.6563
Module end 'content' 0.87950.0009 5,480.687511.8516
Script end 0.8804  5,492.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4311160.0002
Check MTime0.00120.1415160.0001
Mysql Total
Database connection0.00070.075310.0007
Mysqli_queries0.790589.7813640.0124
Looping result0.00070.0761620.0000
Template Total0.827093.920.4135
Template load0.00210.239720.0011
Template processing0.824893.687120.4124
Template load and register function0.00170.189510.0017
states
state_id_array0.00160.185910.0016
state_identifier_array0.00160.186620.0008
Override
Cache load0.00180.2023210.0001
Sytem overhead
Fetch class attribute can translate value0.00170.189640.0004
Fetch class attribute name0.00250.282460.0004
XML
Image XML parsing0.00270.303240.0007
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00280.3198220.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs