Hi Klas
This seems to be a Joomla 'issue' as the Seblod part is fine...
The errors are with the Joomla bit i.e.
a) #__assets.rules = empty,
b) #__categories.parent_id = 0
The only workaround I can think of is to create with Seblod, and then re-order the category using JTable and Nested Sets
$newCategory = new JCckContent(
array('joomla_category')
);
$addCategory = $newCategory->create(
'test_category',
array(
// #__categories
'id' => '',
'title' => 'Some Title',
'alias' => 'some_title',
'parent_id' => 17,
'extension' => 'com_content',
'path' => 'my-path',
'level' => 1,
'access' => 1,
),
array(
// #__cck_store_form_test_category
'some_padlocked_field' => 'some-value'
),
array(
// #__cck_store_item_categories
'some_unpadlocked_field' => 'some-other-value'
)
);
<br>
Jon