OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions How to override a class of a specific bundle

This topic contains 1 reply, has 2 voices, and was last updated by  igalayev 6 years, 8 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
  • #25449

    kenzoj
    Participant

    Hello guys,
    I am trying (unsuccessfully) to override a specific class of a bundle.
    The class I’d like to override is:

    Oro\Bundle\MagentoBundle\Entity\Repository\CustomerRepository

    To do so, I created my bundle

    And I added the bundles.yml

    So far, so good.. the bundle is loaded.
    Now, it seems I can’t find any working example about how to override the class mentioned above.

    I tried creating a file with the same relative path as the class I’d like to override, but it doesn’t work.

    The first problem I have is that “Customer” is not the same type as in the original class.
    The second is that, even fixing it by declaring the full class path, this method is never used while the original is.
    Any hint?

    Thank you very much

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top