Q
Q
Qwyu_4iLofK2021-11-01 19:09:50
Yii
Qwyu_4iLofK, 2021-11-01 19:09:50

Why in the console ". Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType()"?

When trying to assign a new type to a field, enumstatus
vendor/bin/doctrine orm:schema-tool:update --force
writes

Unknown column type "enumstatus" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType().   
  You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database introspection then yo  
  u might have forgotten to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom t  
  ypes implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot some mapping information.


If you run the web application in a browser, then there are no errors. Such an error is only in the console ....-((((and I will not update the database in any way ...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question