Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.2.1
-
Fix Version/s: None
-
Component/s: Schema Managers
-
Security Level: All
-
Labels:None
Description
Problem happens when initially, as example, there was commented type "foo" registered and used:
Doctrine\DBAL\Types\Type::addType('foo', 'FooType');
$em->getConnection()
->getDatabasePlatform()
->markDoctrineTypeCommented(Doctrine\DBAL\Types\Type::getType('foo'));
When the type usage and declaration is removed, the database schema upgrade fails.
This is because DBAL reads the comment from the database and tries to find the type 'foo'.
I suggest ignoring the database column comment and stick to the standard type recognition in case the type is not declared.
Activity
Benjamin Eberlei
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Workflow | jira [ 13499 ] | jira-feedback2 [ 17599 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 17599 ] | jira-feedback3 [ 19953 ] |