ssossossosso

Forums

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

This topic contains 2 replies, has 2 voices, and was last updated by  Nick Mallare 2 years, 6 months ago.

  • Creator
    Topic
  • #6577

    Nick Mallare
    Participant

    Is it possible to override / overload this bundle’s controllers? When I try the following code, I get the following error:

    Code

    Error

    Obviously the Campaign entities are different. Is there any way around this? I’d rather not bypass (and duplicate) the OroCRMCampaignBundle.

    Thanks,
    Nick

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #6580

    Alexandr Smaga
    Participant

    Hello.

    This is restriction on PHP level.
    Does your campaign entity extends origin one ? If yes then you can leave OroCampaignEntity type hint, and just add appropriate @ParamConverter annotation.

    #6581

    Nick Mallare
    Participant

    Thanks for the response.

    I figured it was a PHP limitation; however, I didn’t know if I was extending appropriately, or if I should even extend from OroCRM classes.

    Currently, MyCampaignBundleEntity extends OroCRMCampaignBundleEntity. Ditto for the Controller.

    So, leave everything the same and just use @ParamConvertor to convert from OroCRMCampaignBundleEntity to MyCampaignBundleEntity?

    Thanks,
    Nick

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

You must be logged in to reply to this topic.