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

Forums OroCRM OroCRM – Installation/Technical Issues or Problems Extend Task Bundle using Migration throw error when try to create task

This topic contains 1 reply, has 2 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year, 1 month ago.

  • Creator
  • #56372

    Hi Oro Team,

    I have extend the task bundle using migration I add a ManyToOne Relation on Task to MagentoOrder.
    I have made a formExtension, override the update.html.twig and all works fine except that when i try to create a task , I have this error :

    Fatal error: Call to undefined method OroCRM\Bundle\MagentoBundle\Entity\Order::toArray() in /home/sinabs/sites/ on line 426

    Here is my code :

Viewing 1 replies (of 1 total)
  • Author
  • #56373
    Mike Kudelya
    Mike Kudelya


    Form extend and update update.html.twig is not necessary. If you are using ‘owner’ => ExtendScope::OWNER_CUSTOM orocrm add this field automatically. Please read the documentation.

    Please pay attention on owner attribute in extend scope. In this example we use ExtendScope::OWNER_CUSTOM, it means that Oro platform is fully responsible for render this field on edit and view pages, as well as grids. The default value of owner attribute is ExtendScope::OWNER_SYSTEM, and in this case you have to add such field in forms, views and grids manually.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.