public function buildGeneratedFields(array $generated_field_names, $indent, array &$result)
    {
        $result[] = '';
        $result[] = $indent . '/**';
        $result[] = $indent . ' * Generated fields that are loaded, but not managed by the entity..';
        $result[] = $indent . ' *';
        $result[] = $indent . ' * @var array';
        $result[] = $indent . ' */';
        $result[] = $indent . 'protected $generated_fields = [' . implode(', ', array_map(function ($field_name) {
            return var_export($field_name, true);
        }, $generated_field_names)) . '];';
    }