ColumnTypeCommentMethodsTrait
Provides a couple of methods use-full to restore Doctrine DBAL 3 and earlier behaviour to respect doctrine type override within column comment.
Used within:
- MySQLSchemaManager::parentGetPortableTableColumnDefinition()
- PostgreSQLSchemaManager::parentGetPortableTableColumnDefinition()
- SQLiteSchemaManager::parentGetPortableTableColumnDefinition()
This trait contains code cloned or adopted from Doctrine DBAL 3 removed from AbstractSchemaManager hierarchy:
- https://github.com/doctrine/dbal/blob/61446f07fcb522414d6cfd8b1c3e5f9e18c579ba/src/Schema/AbstractSchemaManager.php#L1730-L1752
- https://github.com/doctrine/dbal/blob/61446f07fcb522414d6cfd8b1c3e5f9e18c579ba/src/Schema/AbstractSchemaManager.php#L1730-L1752
- https://github.com/doctrine/dbal/blob/61446f07fcb522414d6cfd8b1c3e5f9e18c579ba/src/Schema/SqliteSchemaManager.php#L338-L344
for use in extended AbstractSchemaManager hierarchy and not part of public Core API.