mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
[ticket/17525] Provide Doctrine connection object for migrations
PHPBB-17525
This commit is contained in:
@@ -28,6 +28,9 @@ abstract class migration implements migration_interface
|
||||
/** @var \phpbb\db\driver\driver_interface */
|
||||
protected $db;
|
||||
|
||||
/** @var \Doctrine\DBAL\Connection */
|
||||
protected $db_doctrine;
|
||||
|
||||
/** @var \phpbb\db\tools\tools_interface */
|
||||
protected $db_tools;
|
||||
|
||||
@@ -72,6 +75,9 @@ abstract class migration implements migration_interface
|
||||
$this->php_ext = $php_ext;
|
||||
|
||||
$this->errors = array();
|
||||
|
||||
$phpbb_config_php_file = new \phpbb\config_php_file($phpbb_root_path, $php_ext);
|
||||
$this->db_doctrine = \phpbb\db\doctrine\connection_factory::get_connection($phpbb_config_php_file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user