S
S
symnoob2019-07-10 23:32:05
symfony
symnoob, 2019-07-10 23:32:05

How to write an EventSubscriber in Symfony that would intercept a record in the database?

Hello everyone,
How to write an EventSubscriber / Listener in Symfony that would intercept a record in the database?
And is it possible somehow to find out which / which field / fields were changed during Update in the database? in the same Subscriber
Thank you so much
PS: Symfony 3.4

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Flying, 2019-07-11
@symnoob

Of course you can, you just need to use not the Symfony event listener, but the Doctrine event listener , everything you need is there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question