OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Many-to-one custom field not showing on create or update pages?

This topic contains 2 replies, has 2 voices, and was last updated by  peeush 4 years, 2 months ago.

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

  • Creator
  • #40056



    I have created a new custom field of type many-to-one (to a system entity – in my case, Customer User) through UI (in my custom entity), with options “Show on Form” and “Show on View” checked (i.e. set to yes). I performed “updated schema” action by clicking the button) but it does not show on the entity UI in the admin application on either create or update pages! It shows on entity view page as “N/A”, but without the field being available on create/update page, I am unable to set it.

    I tried other relation type fields (one to many and many to many) and they are correctly showing up on all the entity pages. Equally, fields of type many-to-one mapped to another custom entity show correctly as well – it’s just not working when mapped to system entities.

    Please advise on how to fix it (preferably through UI)?

    I know it is possible to use Form Extensions to programmatically add the missing fields to the UI pages, but I am trying to avoid coding for something that is possible through UI. Equally, I have another question open on using Form Extensions as I am struggling to make them work.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #40059

    Andrey Yatsenko

    Hi Peeush,

    This is a known issue.

    Please advise on how to fix it (preferably through UI)?

    There is no way to fix it from UI, you have to create a field from the code.

    Also, you should note that creating fields and entities from UI should be used only for prototyping and on own risk. It’s highly not recommended to make the business logic relly on the changes done from UI.

    internal ticket id #BB-16530



    Thanks Andrey! As you suggested, I will create the fields through code.

    Would you be able to please guide on my other open question about Form Type Extensions as the data for one of my custom entities needs to be input on Customer User entity form – and I am not sure how to implement the data provider class for it.

    Is there an example of sample code/sample bundle that I can look into to see how to implement new relation fields (one to many, many to one, many to many)?


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

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top