OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions How to use oro_entity_create_or_select form

This topic contains 3 replies, has 2 voices, and was last updated by  adriwan_kenoby 6 years ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #34508

    adriwan_kenoby
    Participant

    Hi Oro Team,

    I would like to use oro_entity_create_or_select but I don’t understand well what I have to do.

    Can You provide more info to achieve this like sample configuration.

    I have already change my controller updateAction to

    But now when I saved my entity i am not redirecting to the index page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #34509

    adriwan_kenoby
    Participant

    I have follow the logic from AccountBundle.

    1. adapt the controller of your entity

    2. Create handler for your entity form factory and form select type.

    3. Create form factory and form select type

    4. You also need to index your entity

    Here example of declaration services, implementation could be found in the AccountBundle

    #34510

    Yurii Muratov
    Participant

    Hello, adriwan_kenoby.

    Please check that the edit page template contains the ‘save and close’ button https://github.com/oroinc/crm/blob/master/src/Oro/Bundle/AccountBundle/Resources/views/Account/update.html.twig#L34 and this button processed by your update handler.

    #34511

    adriwan_kenoby
    Participant

    Thanks I had already found this example

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top