Calling Developers!
We are reenergizing our code contribution process! Learn More

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..

Hey everyone! I'm trying to implement Entity CRUD events for `spy_customer` but they don't seem to g

U03D9KKPK2T Posts: 29 🧑🏻‍🚀 - Cadet

Hey everyone!
I'm trying to implement Entity CRUD events for spy_customer but they don't seem to get triggered.
What I did was:
• add <behavior name="event"> with <parameter name="spy_customer_all" column="*"/> to the schema.xml
• add Pyz/Zed/Customer/Dependency/CustomerEvents.php with correct const names (in this case it's 'Entity.spy_customer.create')
• register my EventSubscriber in the EventDependencyProvider and in the subscriber add my listener to the $eventCollection
• rebuild the schema files in src/Orm and regenerate the Propel files
Did I miss anything?

What stumped me when debugging this was that after the saveEventBehaviorEntityChange function triggered, there still was no enty in spy_event_behavior_entity_change (even after any transactions were commited)