Commit 6fc2230
authored
Make all mapped database types case insensitive (#6321)
<!-- Fill in the relevant information below to help triage your pull
request. -->
| Q | A
|------------- | -----------
| Type | improvement
| Fixed issues | <!-- use #NUM format to reference an issue -->
#### Summary
<!-- Provide a summary of your change. -->
Currently, a custom mapping type has to return an array of lowercase
strings in `getMappedDatabaseTypes` or else Doctrine fails to retrieve
the added type as both `AbstractPlatform::getDoctrineTypeMapping` and
`AbstractPlatform::hasDoctrineTypeMappingFor` do a lowercase conversion
before the look-up. A devolper should not depend on internal
representation.
This PR addresses this by storing the mapped type in lowercase to
`AbstractPlatform#doctrineTypeMapping`. This is in line with
`AbstractPlatform::registerDoctrineTypeMapping`, which does a lowercase
conversion as well.1 parent b4329d5 commit 6fc2230
2 files changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
109 | 143 | | |
110 | 144 | | |
111 | 145 | | |
| |||
0 commit comments