The code insert thingy for the forums has broken javascript for me, bear with me on the formatting.
$fs_module = Fieldset::forge('module');
$fs_module->add_model($module);
foreach($module->modulesettings as $i=>$setting){
$fs_setting = Fieldset::forge($i);
$fs_setting->add_model($setting);
$fs_setting->set_parent($fs_module);
}
echo $fs_module->build();
Only the parent model's form is displayed for some reason. Anyone have an idea as to why?