| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 27 | public static function new(string $name) : self |
|
| 13 | { |
||
| 14 | 27 | return new self( |
|
| 15 | 27 | sprintf( |
|
| 16 | 'Unknown column type "%s" requested. Any Doctrine type that you use has ' |
||
| 17 | . 'to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get a list of all the ' |
||
| 18 | . 'known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database ' |
||
| 19 | . 'introspection then you might have forgotten to register all database types for a Doctrine Type. ' |
||
| 20 | . 'Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement ' |
||
| 21 | . 'Type#getMappedDatabaseTypes(). If the type name is empty you might ' |
||
| 22 | 2 | . 'have a problem with the cache or forgot some mapping information.', |
|
| 23 | 27 | $name |
|
| 24 | ) |
||
| 28 |