Giter VIP home page Giter VIP logo

Comments (7)

norkunas avatar norkunas commented on May 19, 2024 1

@codedge sorry, forgot to reply 🙂

  1. The problem is that the document removal should be called with postRemove event not preRemove, because if doctrine would fail to delete the document would be lost.
  2. Yes :)

from meilisearch-symfony.

codedge avatar codedge commented on May 19, 2024 1

Sound good. I'll implement that, as it would make to usage of the package more attractive and open for more custom events per project/user with custom handlers.

from meilisearch-symfony.

norkunas avatar norkunas commented on May 19, 2024 1

I'd say by default listen on doctrine events and add an option to enable messenger :)

from meilisearch-symfony.

codedge avatar codedge commented on May 19, 2024

Sorry for being late to the party 😄

I would really like to see that implemented or implement on my own but I am lacking a bit the uses cases.

  1. Can you point me a bit towards the point in code where you have problems with your current solution?
  2. So each of these three events, postPersist, postUpdate, preRemove, should dispatch a message that can be consumed by a custom handler, that can be speci, right?

from meilisearch-symfony.

curquiza avatar curquiza commented on May 19, 2024

Awesome!

from meilisearch-symfony.

codedge avatar codedge commented on May 19, 2024

@norkunas Just added a small fix to the current situation: You can now enable the postRemove doctrine event (and disable the preRemove).

The next thing is the Messenger integration.

from meilisearch-symfony.

94noni avatar 94noni commented on May 19, 2024

What about dispatching internal bundle event instead?
And let external code listen/subscribe and do the job

from meilisearch-symfony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.