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 <[email protected]
> <javascript:>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.