sajad torkamani

In a nutshell

The preUpdate event is called inside the EntityManager::flush() method, just before an SQL UPDATE statement.

It’s not triggered when the entity’s computed changeset is empty, nor for a DQL UPDATE statement.

You get an instance of PreUpdateEventArgs which has the following methods:

Restrictions

Sources/links