Forums OroPlatform OroPlatform – How do I? Questions How to apply form extension to AclRoleType?

This topic contains 1 reply, has 2 voices, and was last updated by  Mike Kudelya 1 year, 1 month ago.

  • Creator
  • #30723

    Stepan Yudin

    Hi everyone!

    Today i faced an interesting issue. I need to override Role validation (role label length constraint). So, i created new validation rules and placed em in specific validation group. Now i need to apply this validation group to AclRoleType form.

    Here is a form extension code:

    And registered this extension:

    But it is not works. I tried to use this extension for UserType form – and everything was ok.
    Can you tell me why this happens? And what im doing wrong.

    Thank you!

    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform

Viewing 1 replies (of 1 total)
  • Author
  • #30724

    Mike Kudelya


    I think your RoleExtension didn’t execute because role form doesn’t contain service. I have tried your case too.

    Try to override AclRoleType

    and AclRoleHandler:

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.