Comments (7)
@codedge sorry, forgot to reply 🙂
- The problem is that the document removal should be called with
postRemove
event notpreRemove
, because if doctrine would fail to delete the document would be lost. - Yes :)
from meilisearch-symfony.
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.
I'd say by default listen on doctrine events and add an option to enable messenger :)
from meilisearch-symfony.
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.
- Can you point me a bit towards the point in code where you have problems with your current solution?
- 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.
Awesome!
from meilisearch-symfony.
@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.
What about dispatching internal bundle event instead?
And let external code listen/subscribe and do the job
from meilisearch-symfony.
Related Issues (20)
- Deprecations needs to be fixed HOT 1
- Use PHP CS with the PSR standards HOT 3
- [RFC] bump php to v8+ and Symfony to v5.4+ HOT 2
- [RFC] add data collector for profiler and debug HOT 3
- setting: "distinctAttribute" type inconsistency HOT 5
- Working with facets HOT 2
- Enable re-indexation with `indexSwap`
- Autowiring should not be used
- Commands should use `meilisearch:` prefix instead of `meili:`
- Parameters should use `meilisearch.` prefix HOT 1
- Authorization fails
- Add CodeCov HOT 2
- Page fixture in tests uses deprecated Doctrine type `Object`
- Broken links in README
- Support Symfony 7 HOT 1
- Indexing plain objects without entitymanager HOT 2
- DateTime objects are serialized as strings HOT 7
- `nbResults` is not set / ignored
- Import of Mongo ODM entities fails HOT 4
- Ability to use filters on index for additional searchparams/options HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meilisearch-symfony.