I have a particularly long running migration that fails out because of the usual "MySQL server has gone away"
I'm trying to catch the PDOExceptions for that if it does, just reconnect, however even just a basic try/catch around my code doesn't seem to be triggering my catches.
Even something as basic as
public function up(){
try {
causeException();
} catch (\Exception $e) {
var_dump($e);
die();
}
}
I'm getting
before any handling of the exception inside my catch block.
Is there anything from phpmig that is intercepting exceptions?
I have a particularly long running migration that fails out because of the usual "MySQL server has gone away"
I'm trying to catch the PDOExceptions for that if it does, just reconnect, however even just a basic try/catch around my code doesn't seem to be triggering my catches.
Even something as basic as
I'm getting
before any handling of the exception inside my catch block.
Is there anything from phpmig that is intercepting exceptions?