Tuesday 09 December 2008 12:05:47 pm
I am currently working on a 3.10.1 installations. I have made a script where I wan't to delete/clean the object relation list from an attribute of an object. Lest say I have a class with the object list attribute: person_list I fetch the object:
$object = eZContentObject::fetch( 303 );
$data_map = $object->DataMap();
$person_list = $data_map[ 'person_list' ];
$person_list_content = $start->content();
Now I want to delete the content of $person_list, so this is empty. I tried with this:
eZObjectRelationListType::deleteStoredObjectAttribute( $person_list );
But without any luck. Any suggestions how to empty the relation_list in $person_list?
Sincerely,
Anders Sandvik Berre
http://www.netmaking.no/
|