OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions Overriding Oro Entity's Repository.

This topic contains 3 replies, has 2 voices, and was last updated by  czaros45 6 years, 7 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
  • #29366

    czaros45
    Participant

    Hello,
    I would like to override a core entity’s repository. I found this example of overriding repository using EventListener: stackoverflow but it doesn’t seem to work. Can anyone confirm or deny if this solution works? If it doesn’t what should I do?

    Thanks for the answers in advance.

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

    Yurii Muratov
    Participant

    Hi, @czaros45.

    The given example from stackoverflow with ClassMetadataListener works for me.

    Please note that you should clear the cache before use your new repository.

    #29368

    czaros45
    Participant

    I confirm. I must have forgotten clearing the cache. Thanks for your answer.

    #29369

    czaros45
    Participant

    Topic is resolved.

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

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top