Skip to content

[doctrine] Sync index with doctrine orm object change. #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 15, 2017

Conversation

makasim
Copy link
Member

@makasim makasim commented Dec 14, 2017

fixes php-enqueue/enqueue-dev#244

How to use:

  • Disable default sync listener:
fos_elastica:
    indexes:
        enqueue:
            types:
                blog:
                    persistence:
                        driver: orm
                        model: AppBundle\Entity\Blog
                        listener:
                            insert: false
                            update: false
                            delete: false
                            flush: false
  • Enabled queue one:
enqueue_elastica:
    doctrine:
        queue_listeners:
            -
              index_name: 'enqueue'
              type_name: 'blog'
              model_class: 'AppBundle\Entity\Blog'

@makasim makasim changed the title [WIP][doctrine] Sync index with doctrine orm object change. [doctrine] Sync index with doctrine orm object change. Dec 15, 2017
@makasim makasim merged commit b596efb into master Dec 15, 2017
@makasim makasim deleted the sync-index-with-doctrine-orm-object-change branch December 15, 2017 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Elastica] convert the Doctrine listeners to async too
1 participant