I am importing data from another site via a module i am building. The channel I am importing to has a matrix field.
I am doing this like so:
ee()->load->library('api');
ee()->api->instantiate('channel_entries');
ee()->api->instantiate('channel_fields');
$data = array(
'title' => 'TEST'
);
ee()->api_channel_fields->setup_entry_settings($this->customer_channel_id, $data);
$success = ee()->api_channel_entries->save_entry($data, $this->customer_channel_id);
$entry_id = ee()->api_channel_entries->entry_id;
Problem i am having is this error:
A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'is_draft'
Filename: matrix/ft.matrix.php
Line Number: 2409
A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'is_draft'
Filename: matrix/ft.matrix.php
Line Number: 2461
Any ideas?