Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums OroPlatform OroPlatform – Programming Questions Change config field to an Oro Entity (Contact)

This topic contains 1 reply, has 1 voice, and was last updated by  Geoffroy Cochard 8 months, 1 week ago.

  • Creator
  • #60880

    Geoffroy Cochard


    My goal is to change namePrefix behaviour like a select with option Mr, Mrs, Ms, etc through a Special DoctrineType

    My first step is to change type with migration :

    During migration all was fine but i would like to transform this field to an extended field cause to use all oro advantages like formType guesser and so on.

    But when i modify oro_options to is_extend = true of this field with migration like

    During cache generation, it find namePrefix twice

    Cause i think one namePrefix from extended configuration and one from regular entity…

    Should i work only on template / FormType override ?

    Thanks by advance for your advice

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

    Geoffroy Cochard

    Finally I opted to overload Form Type and EntityNameFormatter provider.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.