container = $container; } /** * @todo remove when upgrading DoctrineMigration (only needed for PHP 8) * * @see https://github.com/doctrine/DoctrineMigrationsBundle/issues/393 */ public function isTransactional(): bool { return false; } protected function getTable($tableName, $unEscaped = false) { $table = $this->container->getParameter('database_table_prefix') . $tableName; if (self::UN_ESCAPED_TABLE === $unEscaped) { return $table; } // escape table name is handled using " on postgresql if ('postgresql' === $this->connection->getDatabasePlatform()->getName()) { return '"' . $table . '"'; } // return escaped table return '`' . $table . '`'; } }