Is it possible to use Doctrine EventManager in Shopware? Von meinem iPhone gesendet
> Am 25.07.2016 um 20:34 schrieb Benjamin Eberlei <kont...@beberlei.de>: > > I think you are using shopware event subscription, not Doctrine EventManager. > These are different systems. probably shopware's onUpdateAccountAfter event > works entirely different. > >> On Sat, Jul 23, 2016 at 5:45 PM, Jonas Siglmüller <jonas.siglmuel...@me.com> >> wrote: >> Thank you for this fast reply. >> >> code snippet: >> public function install() >> { >> $this->subscribeEvent( >> 'Shopware\Models\Customer\Address::preUpdate', >> 'onUpdateAccountAfter' >> ); >> return true; >> >> >> >> } >> >> public function onUpdateAccountAfter(PreUpdateEventArgs $arguments) >> { >> echo 'output:'; >> print_r($arguments->getEntityChangeSet()); >> die(); >> >> This just gives me "output:" and nothing else. No error message, even though >> error reporting is on. >> Exception trace is empty also. >> >> The getEntityChangeSet should definitly be not empty. I am calling this >> after changing my address. >> >> Thanks for your help. >> >> >> >> >> Am Samstag, 23. Juli 2016 13:51:27 UTC+2 schrieb kontakt: >>> >>> Please provide the full error message and exception trace, and a snippet of >>> your code. >>> >>> On Sat, Jul 23, 2016 at 12:52 PM, Jonas Siglmüller <jonas.si...@me.com> >>> wrote: >>>> Hello, >>>> >>>> I would like to acces the PreUpdateEventArgs in my Shopware plugin after >>>> subscribing to the event Shopware\Models\Customer\Address::preUpdate. >>>> Even though I've set the input parameter correctly, I can not access >>>> $arguments->getEntityChangeSet(). >>>> >>>> Can you help me with this? >>>> The people from shopware don't seem to be into the doctrine project that >>>> much... >>>> >>>> Thanks! >>>> >>>> http://www.doctrine-project.org/api/orm/2.1/class-Doctrine.ORM.Event.PreUpdateEventArgs.html >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "doctrine-user" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an >>>> email to doctrine-use...@googlegroups.com. >>>> To post to this group, send email to doctri...@googlegroups.com. >>>> Visit this group at https://groups.google.com/group/doctrine-user. >>>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "doctrine-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to doctrine-user+unsubscr...@googlegroups.com. >> To post to this group, send email to doctrine-user@googlegroups.com. >> Visit this group at https://groups.google.com/group/doctrine-user. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to a topic in the Google > Groups "doctrine-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/doctrine-user/IddZkGwRbeE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > doctrine-user+unsubscr...@googlegroups.com. > To post to this group, send email to doctrine-user@googlegroups.com. > Visit this group at https://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to doctrine-user+unsubscr...@googlegroups.com. To post to this group, send email to doctrine-user@googlegroups.com. Visit this group at https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.