Yii2 how to retrieve repeatable fields from database for update form

How should I go about getting data from a single database field that has been saved as a json encode array back into my yii2 update form.

I need to do some sort of foreach loop and then modify the below bit of form field code to include the current value of that within the current array.


    <?= $form->field($model, 'group[{{row-count-placeholder}}][name]')->textInput(['maxlength' => 255])->label('Name') ?>

Below is my repeatable field setup for my create form each array has the following items/form fields


  <?= $form->field($model, 'group[{{row-count-placeholder}}][name]')->textInput(['maxlength' => 255])->label('Name') ?>

    <?= $form->field($model, 'group[{{row-count-placeholder}}][url]')->textInput(['maxlength' => 255])->label('URL') ?>

    <?= $form->field($model, 'group[{{row-count-placeholder}}][colour]')->dropDownList(['yellow' => 'Yellow', 'blue' => 'Blue', 'green' => 'Green']); ?>

    <?= $form->field($model, 'group[{{row-count-placeholder}}][datetime]')->textInput(['maxlength' => 255])->label('Date/Time') ?>

    <?= $form->field($model, 'group[{{row-count-placeholder}}][status]')->dropDownList(['normal' => 'Normal', 'Featured' => 'Featured', 'sponsored' => 'Sponsored']); ?>