public function saveRelationships(\Illuminate\Http\Request $input, &$model, array $fields)
    {
        //run through the edit fields to see if we need to set relationships
        foreach ($fields as $name => $field) {
            if ($field->getOption('external')) {
                $field->fillModel($model, $input->get($name, null));
            }
        }
    }