Thursday 10 November 2005 3:25:11 pm
I've added a new attribute to the user class called "punkte" Datatype: Integer Now i need to edit this attribute within one of my extensions. I tried the following:
include_once( "kernel/classes/ezcontentobject.php" );
$userObject=eZContentObject::fetch('59');
$newuserObject =& $userObject->createNewVersion();
$dataMap =& $newuserObject->attribute ( 'data_map' );
$dataMap['punkte']->setAttribute( 'data_int', '5' );
$dataMap['punkte']->store();
My problem is that the attribte is set but not stored! Has anyone a suggestion for me?
Mit freundlichen Grüßen
Best regards
Norman Leutner
____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh
|