OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Overriding form RFQ

This topic contains 2 replies, has 2 voices, and was last updated by  Guillaume Deneux 1 year, 2 months ago.

  • Creator
    Topic
  • #37451

    Guillaume Deneux
    Participant

    I added a field from the backoffice on the entity rfq, I wish to make this option mandatory and type email.
    To add these constraints I am looking to modify the form:
    vendor/oro/commerce/src/Oro/Bundle/RFPBundle/Form/Type/Frontend/RequestType.php:29

    I followed the documentation:
    https://symfony.com/doc/current/bundles/FOSUserBundle/overriding_forms.html

    All my tests lead me to the same error:

    Cannot read index “firstName” from object of type “Oro\Bundle\RFPBundle\Entity\Request” because it doesn’t implement \ArrayAccess.

    I created the class RequestType from namespace namespace Tbd\RFPBundle\Form\Type\Frontend :

    In my file .yml

    What is wrong ?

    thanking you

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

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No