Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doctrine make:migration unknown database type

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

like image 654
rtom Avatar asked Oct 20 '25 14:10

rtom


1 Answers

In symfony config/packages/doctrine.yaml you can just map the type to data type that you want.

doctrine:
    dbal:
        mapping_types:
            _int4: string
like image 125
rtom Avatar answered Oct 24 '25 19:10

rtom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!