# Doctrine Configuration
doctrine:
    dbal:
        default_connection: default
        connections:
            default:
                driver: pdo_%database.driver%
                host: %database.host%
                port: %database.port%
                dbname: %database.name%
                user: %database.user%
                password: %database.password%
                charset: utf8mb4
                default_table_options:
                    charset: utf8mb4
                    collate: utf8mb4_unicode_ci
                mapping_types:
                    # Remove when we don't have legacy tables anymore
                    enum: string
        types:
            enum_bool: Common\Doctrine\Type\EnumBoolType
            locale: Common\Doctrine\Type\LocaleType

    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        entity_managers:
            default:
                connection: default
                auto_mapping: true

doctrine_orm_bridge:
    entity_manager: default
    connection: default

services:
    entity.create_schema:
        class: Common\Doctrine\Entity\CreateSchema
        arguments:
            - "@doctrine.orm.entity_manager"

# Doctrine Configuration
doctrine:
    dbal:
        default_connection: default
        connections:
            default:
                driver: pdo_%database.driver%
                host: %database.host%
                port: %database.port%
                dbname: %database.name%
                user: %database.user%
                password: %database.password%
                charset: utf8mb4
                default_table_options:
                    charset: utf8mb4
                    collate: utf8mb4_unicode_ci
                mapping_types:
                    # Remove when we don't have legacy tables anymore
                    enum: string
        types:
            enum_bool: Common\Doctrine\Type\EnumBoolType
            locale: Common\Doctrine\Type\LocaleType

    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        entity_managers:
            default:
                connection: default
                auto_mapping: true
                mappings:
                    common:
                        type: annotation
                        is_bundle: false
                        dir: %kernel.root_dir%/../src/Common/Doctrine/Entity
                        alias: Common
                        prefix: Common\Doctrine\Entity

doctrine_orm_bridge:
    entity_manager: default
    connection: default

services:
    entity.create_schema:
        class: Common\Doctrine\Entity\CreateSchema
        arguments:
            - "@doctrine.orm.entity_manager"

Add mapping for Common entities
Add mapping for Common entities

This can contain general this that we need in back and frontend like the meta entity
