How can i save repeater field data to Tailor Global?
The code below does not work…
$post = EntryRecord::inSection('Catalog\Order');
$post->title = 'Test';
$post->status = 'New';
$post->items = ['title' => 'Test', 'price' => '100']; // repeater field
$post->save();
Hi @amristar
This code should work. The items need to be managed as individual models and after the parent model is created
$post = EntryRecord::inSection('Catalog\Order');
$post->title = 'Test 2';
$post->status = 'New';
$post->save();
$post->items()->create(['title' => 'Test', 'price' => '100']);
1 Like