# Events and there purpose

**URL:** https://forum.shopware.com/t/events-and-there-purpose/70354
**Category:** Programming (EN)
**Created:** [21. Oktober 2020 um 12:52 UTC](https://forum.shopware.com/t/events-and-there-purpose/70354 "2020-10-21T12:52:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Fboensch](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@Fboensch](https://forum.shopware.com/u/Fboensch)
#### Post date: [21. Oktober 2020 um 12:52 UTC](https://forum.shopware.com/t/events-and-there-purpose/70354/1 "2020-10-21T12:52:05Z")

</div>

Hello there,

I’m tring to use some Events and I don’t know, if i understand Events correctly. In my opinion a Subscriber for an Event should be a way to change something.

Some Examples:  
DataMappingEvent with ‘CustomerEvents::MAPPING\_CUSTOMER\_PROFILE\_SAVE’ as name:

I get a Data-Object, an Array and a Context. I can only change the array in my Subscriber context (not for the procedure afterwards), the Data-Object is never used after this Event.

EntitySearchedEvent:

I got some Objects and can manipulate them and it could all be fine. But in the Event constructor two objects are cloned and changes on these won’t be possible.

I can’t see the purpose of those Events. How can I use these Events meaningfully? Or why should I use these Events, if I can’t manipulate anything?
