What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Is there a way to defer entity event triggering during bulk processes?

UKGT7RC7P
UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

Is there a way to defer entity event triggering during bulk processes?

Comments

  • you should be able to toggle the mechanism through the EventBehaviorFacade

  • that is what should be done by default during DataImport

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    hm, don't see it. Actually asking on behalf of someone else who will I guess join this slack shortly πŸ˜„

  • UKGT7RC7P
    UKGT7RC7P Posts: 538 πŸ§‘πŸ»β€πŸš€ - Cadet

    can't see any relevant method in the facade

  • Ehsan Zanjani
    Ehsan Zanjani Head of Solution Architecture @ Spryker Posts: 113 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited November 2019

    Not in Facade method, it’s part of configuration, facades are stateless, for disabling the events we need configuration

  • Ehsan Zanjani
    Ehsan Zanjani Head of Solution Architecture @ Spryker Posts: 113 πŸ§‘πŸ»β€πŸš€ - Cadet

    Spryker/Zed/EventBehavior/EventBehaviorConfig.php::disableEvent()

  • jochen.gartner
    jochen.gartner Posts: 42 πŸ§‘πŸ»β€πŸš€ - Cadet

    you can see it used in the dataImporters: vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Plugin/DataImportEventBehaviorPlugin.php

  • UKEP86J66
    UKEP86J66 Posts: 208 πŸ§‘πŸ»β€πŸš€ - Cadet

    ah, nice thanks guys

  • UKEP86J66
    UKEP86J66 Posts: 208 πŸ§‘πŸ»β€πŸš€ - Cadet

    I am the 'someone else' Dan mentioned πŸ™‚