Author Topic

Laurent Dorier

Monday 25 January 2010 12:52:46 am

Comment56705

Hello,

I'm trying to do the same (not for a cronjob but for an eZ extension) but unsuccesful...

$object= eZContentObject::fetchByNodeID($node_id);
$dataMap = $object->dataMap();
$contentObjectAttribute = ImportOperator::save_eZ_attribute($dataMap['MyObject_relation_list']);
$value = '206-207-213';
$contentObjectAttribute->fromString( $value );
$contentObjectAttribute->store();

I get:

Non-static method ImportOperator::save_eZ_attribute() should not be called statically

Someone can help ?