I am using this:

```
my.listener:
        class: Acme\SearchBundle\Listener\SearchIndexer
        tags:
            - { name: doctrine.event_listener, event: postPersist }

```

Now if I try to listen for two events like this:

```
- { name: doctrine.event_listener, event: postPersist, preUpdate }

```

it gives an error.