C
C
Crash2020-10-06 17:16:43
symfony
Crash, 2020-10-06 17:16:43

How to solve this problem when creating migrations?

I put the Security Bundle, I got to the migrations after creating the User entity. An error occurred:
5f7c7bd8d12ad609943880.png
The content of the doctrine.yaml config is as follows:

doctrine:
    dbal:
        url: '%env(resolve:DATABASE_URL)%'

        # IMPORTANT: You MUST configure your server version,
        # either here or in the DATABASE_URL env var (see .env file)
        #server_version: '5.7'
    orm:
        auto_generate_proxy_classes: true
        naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
        auto_mapping: true
        mappings:
            App:
                is_bundle: false
                type: yml
                dir: '%kernel.project_dir%/src/Entity'
                prefix: 'App\Entity'
                alias: App


I am not very good at Symphony yet, I have previously worked with other frameworks (mainly Yii2). Help me to understand.

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