It will happen before PDO::query
is returning or better spoken, before the mysql server is responding to the client request. This is necessary to keep data health.
The best test to proof this is to put an error into the trigger code and see the error happen in php.