Controller/FormController.php
public function getFieldDescriptors($locale, $filters)
    {
        $fieldDescriptors = [];

        $fieldDescriptors['id'] = new DoctrineFieldDescriptor(
            'id',
            'id',
            Form::class,
            'public.id',
            [],
            true,
            false
        );

        $fieldDescriptors['title'] = new DoctrineCaseFieldDescriptor(
            'title',
            new DoctrineDescriptor(
                'translation',
                'title',
                [
                    'translation' => new DoctrineJoinDescriptor(
                        'translation',
                        Form::class . '.translations',
                        sprintf('translation.locale = \'%s\'', $locale)
                    ),
                ]
            ),
            new DoctrineDescriptor(
                'defaultTranslation',
                'title',
                [
                    'defaultTranslation' => new DoctrineJoinDescriptor(
                        'defaultTranslation',
                        Form::class . '.translations',
                        sprintf('defaultTranslation.locale = %s.defaultLocale', Form::class)
                    ),
                ]
            ),
            'public.title',
            false,
            true
        );

        $fieldDescriptors['changed'] = new DoctrineCaseFieldDescriptor(
            'changed',
            new DoctrineDescriptor(
                'translation',
                'changed',
                [
                    'translation' => new DoctrineJoinDescriptor(
                        'translation',
                        Form::class . '.translations',
                        sprintf('translation.locale = \'%s\'', $locale)
                    ),
                ]
            ),
            new DoctrineDescriptor(
                'defaultTranslation',
                'changed',
                [
                    'defaultTranslation' => new DoctrineJoinDescriptor(
                        'defaultTranslation',
                        Form::class . '.translations',
                        sprintf('defaultTranslation.locale = %s.defaultLocale', Form::class)
                    ),
                ]
            ),
            'public.changed',
            false,
            false
        );

        $fieldDescriptors['created'] = new DoctrineCaseFieldDescriptor(
            'created',
            new DoctrineDescriptor(
                'translation',
                'created',
                [
                    'translation' => new DoctrineJoinDescriptor(
                        'translation',
                        Form::class . '.translations',
                        sprintf('translation.locale = \'%s\'', $locale)
                    ),
                ]
            ),
            new DoctrineDescriptor(
                'defaultTranslation',
                'created',
                [
                    'defaultTranslation' => new DoctrineJoinDescriptor(
                        'defaultTranslation',
                        Form::class . '.translations',
                        sprintf('defaultTranslation.locale = %s.defaultLocale', Form::class)
                    ),
                ]
            ),
            'public.created',
            false,
            false
        );

        $fieldDescriptors['locale'] = new DoctrineCaseFieldDescriptor(
            'locale',
            new DoctrineDescriptor(
                'translation',
                'locale',
                [
                    'translation' => new DoctrineJoinDescriptor(
                        'translation',
                        Form::class . '.translations',
                        sprintf('translation.locale = \'%s\'', $locale)
                    ),
                ]
            ),
            new DoctrineDescriptor(
                'defaultTranslation',
                'locale',
                [
                    'defaultTranslation' => new DoctrineJoinDescriptor(
                        'defaultTranslation',
                        Form::class . '.translations',
                        sprintf('defaultTranslation.locale = %s.defaultLocale', Form::class)
                    ),
                ]
            ),
            'security.permission.role.language',
            true,
            false
        );

        return $fieldDescriptors;
    }
public function getFieldDescriptors($locale, $filters)
    {
        $fieldDescriptors = [];

        $fieldDescriptors['id'] = new DoctrineFieldDescriptor(
            'id',
            'id',
            Form::class,
            'public.id',
            [],
            true,
            false
        );

        $fieldDescriptors['title'] = new DoctrineCaseFieldDescriptor(
            'title',
            new DoctrineDescriptor(
                'translation',
                'title',
                [
                    'translation' => new DoctrineJoinDescriptor(
                        'translation',
                        Form::class . '.translations',
                        sprintf('translation.locale = \'%s\'', $locale)
                    ),
                ]
            ),
            new DoctrineDescriptor(
                'defaultTranslation',
                'title',
                [
                    'defaultTranslation' => new DoctrineJoinDescriptor(
                        'defaultTranslation',
                        Form::class . '.translations',
                        sprintf('defaultTranslation.locale = %s.defaultLocale', Form::class)
                    ),
                ]
            ),
            'public.title',
            false,
            true
        );

        $fieldDescriptors['changed'] = new DoctrineCaseFieldDescriptor(
            'changed',
            new DoctrineDescriptor(
                'translation',
                'changed',
                [
                    'translation' => new DoctrineJoinDescriptor(
                        'translation',
                        Form::class . '.translations',
                        sprintf('translation.locale = \'%s\'', $locale)
                    ),
                ]
            ),
            new DoctrineDescriptor(
                'defaultTranslation',
                'changed',
                [
                    'defaultTranslation' => new DoctrineJoinDescriptor(
                        'defaultTranslation',
                        Form::class . '.translations',
                        sprintf('defaultTranslation.locale = %s.defaultLocale', Form::class)
                    ),
                ]
            ),
            'public.changed',
            false,
            false
        );

        $fieldDescriptors['created'] = new DoctrineCaseFieldDescriptor(
            'created',
            new DoctrineDescriptor(
                'translation',
                'created',
                [
                    'translation' => new DoctrineJoinDescriptor(
                        'translation',
                        Form::class . '.translations',
                        sprintf('translation.locale = \'%s\'', $locale)
                    ),
                ]
            ),
            new DoctrineDescriptor(
                'defaultTranslation',
                'created',
                [
                    'defaultTranslation' => new DoctrineJoinDescriptor(
                        'defaultTranslation',
                        Form::class . '.translations',
                        sprintf('defaultTranslation.locale = %s.defaultLocale', Form::class)
                    ),
                ]
            ),
            'public.created',
            false,
            false
        );

        $fieldDescriptors['locale'] = new DoctrineCaseFieldDescriptor(
            'locale',
            new DoctrineDescriptor(
                'translation',
                'locale',
                [
                    'translation' => new DoctrineJoinDescriptor(
                        'translation',
                        Form::class . '.translations',
                        sprintf('translation.locale = \'%s\'', $locale)
                    ),
                ]
            ),
            new DoctrineDescriptor(
                'defaultTranslation',
                'locale',
                [
                    'defaultTranslation' => new DoctrineJoinDescriptor(
                        'defaultTranslation',
                        Form::class . '.translations',
                        sprintf('defaultTranslation.locale = %s.defaultLocale', Form::class)
                    ),
                ]
            ),
            'security.permission.role.language',
            true,
            false
        );

        return $fieldDescriptors;
    }
@param string $locale
@param array $filters

@return DoctrineFieldDescriptor[] $filters