You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On SQL Server platform, having a custom doctrine.dbal.connections[].platform_service that extends SQLServerPlatform, the call for AbstractSQLServerDriver::getSchemaManager() breaks due to an incorrect assert.
Current behaviour
The assertion in getSchemaManager() fails because it is as follows :
# \Doctrine\DBAL\Driver\AbstractSQLServerDriver: line 43assert($platforminstanceof SQLServer2012Platform);
My custom platform is extending SQLServerPlatform to prevent the deprecation, so this assertion fails
How to reproduce
# src/Doctrine/DBAL/Platforms/SQLServerPlatform.phpnamespaceApp\Doctrine\DBAL\Platforms;
useDoctrine\DBAL\Platforms\SQLServerPlatformasDoctrineSQLServerPlatformAlias;
class SQLServerPlatform extends DoctrineSQLServerPlatformAlias
{
}
Bug Report
Summary
On SQL Server platform, having a custom
doctrine.dbal.connections[].platform_service
that extendsSQLServerPlatform
, the call forAbstractSQLServerDriver::getSchemaManager()
breaks due to an incorrect assert.Current behaviour
The assertion in
getSchemaManager()
fails because it is as follows :My custom platform is extending
SQLServerPlatform
to prevent the deprecation, so this assertion failsHow to reproduce
Expected behaviour
The assert should not fail, I guess it should be replaced by the new class instead of the deprecated one :
The text was updated successfully, but these errors were encountered: