Oro\Bundle\LocaleBundle\Entity\Localization:
    constraints:
        - Oro\Bundle\LocaleBundle\Validator\Constraints\Localization: ~
    properties:
        name:
            - Length:
                max: 255
            - NotBlank: ~
        titles:
            - Valid: ~
            - NotBlank:
                message: 'oro.locale.localization.titles.blank'
        languageCode:
            - Length:
                max: 16
            - NotBlank: ~
        formattingCode:
            - Length:
                max: 16
            - NotBlank: ~

Oro\Bundle\LocaleBundle\Entity\LocalizedFallbackValue:
    properties:
        fallback:
            - Length:
                max: 64
            - Choice: { callback: getFallbacks }
        string:
            - Length:
                max: 255

Oro\Bundle\LocaleBundle\Entity\Localization:
    constraints:
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: name
    properties:
        languageCode:
            - NotBlank: ~
            - Length:
                min: 2
                max: 64
        formattingCode:
            - NotBlank: ~
            - Length:
                min: 2
                max: 64
        name:
            - NotBlank: ~
            - Length:
                min: 2
                max: 255

Oro\Bundle\LocaleBundle\Entity\Localization:
    constraints:
        - Oro\Bundle\LocaleBundle\Validator\Constraints\Localization: ~
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: name
    properties:
        name:
            - Length:
                max: 255
            - NotBlank: ~
        titles:
            - Valid: ~
            - NotBlank:
                message: 'oro.locale.localization.titles.blank'
        languageCode:
            - Length:
                max: 16
            - NotBlank: ~
        formattingCode:
            - Length:
                max: 16
            - NotBlank: ~

Oro\Bundle\LocaleBundle\Entity\LocalizedFallbackValue:
    properties:
        fallback:
            - Length:
                max: 64
            - Choice: { callback: getFallbacks }
        string:
            - Length:
                max: 255

Oro\Bundle\LocaleBundle\Entity\Localization:
    constraints:
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: name
    properties:
        languageCode:
            - NotBlank: ~
            - Length:
                min: 2
                max: 64
        formattingCode:
            - NotBlank: ~
            - Length:
                min: 2
                max: 64
        name:
            - NotBlank: ~
            - Length:
                min: 2
                max: 255

Test and merge to master - fixed migrations - added uniq constraint for field name
BAP-10622: Test and merge to master
 - fixed migrations
 - added uniq constraint for field name
