Oro\Bundle\OrganizationBundle\Entity\Organization:
    properties:
        name:
            - NotBlank: ~
            - Length:
                  max: 255

Oro\Bundle\OrganizationBundle\Entity\BusinessUnit:
    constraints:
        - Oro\Bundle\OrganizationBundle\Validator\Constraints\BusinessUnitOwner: ~
        - Oro\Bundle\OrganizationBundle\Validator\Constraints\ParentBusinessUnit: ~
    properties:
        name:
            - NotBlank: ~
            - Length:
                max: 255
        phone:
            - Length:
                max: 100
        email:
            - Length:
                min: 6
                max: 255
                allowEmptyString: false
            - Email: ~
        website:
            - Url:
                protocols: ['http', 'https']
                message: oro.organization.validation.business_unit.website_url.message
