TARMOUL
TARMOUL

Reputation: 41

How to fix Symfony 4 error "Not find enum type"

I'm working on a visualization interface project with PHP and Symfony.

Seeing that I am a beginner I do not really know how to find a solution on a bug. In fact when I import my Postgres database into Symfony 4 with command:

php bin/console  doctrine:mapping:import App\\Entity annotation --path=src/Entity

There is a message:

Not find enum type

I tried to add

type mappign: type: srting

in the file config.yml but but I still have the same problem.

Upvotes: 4

Views: 1075

Answers (2)

Jericho Pumpkin
Jericho Pumpkin

Reputation: 11

did what Igmer Rodriguez suggests, but the problem persists. Anyone else has suggestions? Maybe something not involving changing the Doctrine DBAL code inthe Symfony 4 bundle

Upvotes: 0

Igmer Rodriguez
Igmer Rodriguez

Reputation: 172

in your file config.yml add this::

doctrine:
    dbal:
        mapping_types:
            enum: string

source here

Upvotes: 1

Related Questions