ssossossosso

Forums

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

This topic contains 1 reply, has 2 voices, and was last updated by  igalayev 2 months ago.

  • Creator
    Topic
  • #35338

    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)

You must be logged in to reply to this topic.