예제 #1
0
 /**
  * Changes a connection object for the given entity manager
  *
  * @param Connection        $connection
  * @param EntityManagerMock $em
  */
 protected function setDriverConnection(Connection $connection, EntityManagerMock $em)
 {
     /** @var DriverMock $driver */
     $driver = $em->getConnection()->getDriver();
     $driver->setDriverConnection($connection);
 }