OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Overriding form RFQ

This topic contains 2 replies, has 2 voices, and was last updated by  Guillaume Deneux 5 years, 6 months ago.

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

  • 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)

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

Back to top