Doctrine mysql master-master failover with automatic failback