ssossossossosso

Forums

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

Forums Forums OroPlatform OroPlatform – Installation/Technical Issues or Problems Unable to extend Organization Entity

This topic contains 3 replies, has 3 voices, and was last updated by  Stepan Yudin 2 years, 2 months ago.

  • Creator
    Topic
  • #29564

    Rogyar
    Participant

    Hello Guys.
    We have spent some time on attempts to extend the Organization entity using Entity Management GUI with no luck. What we are trying to achieve is to create ManyToMany or OneToMany relation with other entity (we have tried different entities).
    The element for assigning the related entities was successfully added on the Organization edit/update form. However, each time on attempt to save the Organization we are getting the following error:
    Fatal error: Call to a member function add() on a non-object in .../vendor/oro/platform/src/Oro/Bundle/FormBundle/Form/EventListener/MultipleEntitySubscriber.php on line 60

    Looks like the

    returns nothing in the corresponding method.
    Any help is very appreciated. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #29565

    Yurii Muratov
    Participant

    Hi, @rogyar. What version of platform do you use?

    #29566

    Rogyar
    Participant

    Hello Yurii. We use 1.7 at this moment.
    The issue appears on both 1.7 and 1.6.
    Thanks

    #29567

    Stepan Yudin
    Participant

    In my case there is almost the same problem.

    When i try to access entity in form event listener by $form->getData() it returns an object. But it is a proxy with NULLs in fields that should contain linked entities (Many-to-One relation). How can i get’ em? If i try to get object and linked objects in controller action via chain of getters calls – everything is ok. Really strange behaviour (


    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
    https://github.com/stepansib/sf-oro-docker

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

You must be logged in to reply to this topic.