Hi i am just getting error when i tried to update doctrine scheme in my Symphony App. I run
php app/console doctrine:schema:update --force
and getting error this error
[Doctrine\DBAL\DBALException]
Unknown column type "mystoragetype" 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::getTypeMap().
If this error occurs during database introspection then you might have forgot to register all database types for a Doctrine Type.
Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMappedDatabaseTypes().
If the type name is empty you might have a problem with the cache or forgot some mapping information.
I couldn't find anything related to "mystoragetype" in my project and also tried to add type but nothing happened. Could you figure it out why i am getting this error?
Doctrine adds comments to fields with custom type: Something like:(DC2Type:mystoragetype). I think you generated schema with that type and had to remove type from entity. But comment remains in database.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With