ov-i / ovcommerce

Projekt E-commerce bazujący na Symfony. Projekt aby się czegoś nowego nauczyć
0 stars 0 forks source link

Find a way to add record to userAccountHistory table after user changes #4

Closed ov-i closed 1 year ago

ov-i commented 1 year ago

There must be a way to retrieve an easy admin request after editing. I have to also add

ov-i commented 1 year ago

Problem

I had to add action, that could change / add record to the another table. From user a updated_at property to userAccountStatusHistory entity

Solution

To actually do that, You have to override an update_entity method, or my chosen way - is to create a subscriber for that type of actions here are the docs

Some actions

Events related to Doctrine entities:

Events related to resource admins: