Forums / Developer / Add object_relation attribute type within a php script / Comment46239
Fabio Carissimi
Tuesday 04 July 2006 7:59:08 am
Hi Kristoff, here is the result of $cli->output(print_r($content)); after adding relations, it seems that $content['relation_list'] is updated (like I want) but in the admin interface I can see no relations.
Array ( [type] => 2 [class_constraint_list] => Array ( ) [default_placement] => [relation_list] => Array ( [0] => Array ( [identifier] => [priority] => 1 [contentobject_id] => 407 [contentobject_version] => 1 [node_id] => 401 [parent_node_id] => 60 [contentclass_id] => 19 [contentclass_identifier] => theme_recherche [is_modified] => [object] => ezcontentobject Object ( [PersistentDataDirty] => [ID] => 407 [Name] => Instrumentation, Robotique, Images, Signaux (IRIS) [CurrentLanguage] => fre-FR [ClassName] => [ClassIdentifier] => [DataMap] => Array ( ) [ContentActionList] => [ContentObjectAttributes] => Array ( ) [MainNodeID] => 401 [SectionID] => 1 [OwnerID] => 14 [ClassID] => 19 [IsPublished] => 0 [Published] => 1152023793 [Modified] => 1152023793 [CurrentVersion] => 1 [Status] => 1 [RemoteID] => b782cbf058d06ee575c3d1b2cbc335ba [LanguageMask] => 2 [InitialLanguageID] => 2 ) ) ) )