I am trying to start using Doctrine, but I encountered a problem when I created entity through php bin/console make:entity, then I tried to make migration with php bin/console make:migration but I get this error message:
Uknown database type _int4 requested, Doctrine\DBAL\Platforms\PostgreSqlPlatform may not support it.
I am using postgres 9.4 and doctrine 2.6
In symfony config/packages/doctrine.yaml you can just map the type to data type that you want.
doctrine:
dbal:
mapping_types:
_int4: string
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