8000 Symfony 5.2-RC-1 "It's a requirement to specify a Metadata Driver" · Issue #39120 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
  • Insights
  • Symfony 5.2-RC-1 "It's a requirement to specify a Metadata Driver" #39120
    Closed
    @eerison

    Description

    @eerison

    Symfony version(s) affected: v5.2.0-RC-1

    Description
    After migrate symfony 5.1 to 5.2.0-RC-1 I got this error

    In ORMException.php line 40:
    !!                                                                                 
    !!    It's a requirement to specify a Metadata Driver and pass it to Doctrine\ORM  
    !!    \Configuration::setMetadataDriverImpl().      
    

    Additional context

    symfony/apache-pack                v1.0.1     A pack for Apache support in Symfony
    symfony/asset                      v5.2.0-RC1 Symfony Asset Component
    symfony/browser-kit                v5.2.0-RC1 Symfony BrowserKit Component
    symfony/cache                      v5.2.0-RC1 Symfony Cache component with PSR-6, PSR-16, and tags
    symfony/cache-contracts            v2.2.0     Generic abstractions related to caching
    symfony/config                     v5.2.0-RC1 Symfony Config Component
    symfony/console                    v5.2.0-RC1 Symfony Console Component
    symfony/css-selector               v5.2.0-RC1 Symfony CssSelector Component
    symfony/dependency-injection       v5.2.0-RC1 Symfony DependencyInjection Component
    symfony/deprecation-contracts      v2.2.0     A generic function and convention to trigger deprecation notices
    symfony/doctrine-bridge            v5.2.0-RC1 Symfony Doctrine Bridge
    symfony/dom-crawler                v5.2.0-RC1 Symfony DomCrawler Component
    symfony/dotenv                     v5.2.0-RC1 Registers environment variables from a .env file
    symfony/error-handler              v5.2.0-RC1 Symfony ErrorHandler Component
    symfony/event-dispatcher           v5.2.0-RC1 Symfony EventDispatcher Component
    symfony/event-dispatcher-contracts v2.2.0     Generic abstractions related to dispatching event
    symfony/expression-language        v5.2.0-RC1 Symfony ExpressionLanguage Component
    symfony/filesystem                 v5.2.0-RC1 Symfony Filesystem Component
    symfony/finder                     v5.2.0-RC1 Symfony Finder Component
    symfony/flex                       v1.10.0    Composer plugin for Symfony
    symfony/form                       v5.2.0-RC1 Symfony Form Component
    symfony/framework-bundle           v5.2.0-RC1 Symfony FrameworkBundle
    symfony/http-client                v5.2.0-RC1 Symfony HttpClient component
    symfony/http-client-contracts      v2.3.1     Generic abstractions related to HTTP clients
    symfony/http-foundation            v5.2.0-RC1 Symfony HttpFoundation Component
    symfony/http-kernel                v5.2.0-RC1 Symfony HttpKernel Component
    symfony/intl                       v5.2.0-RC1 A PHP replacement layer for the C intl extension that includes additional data from the ICU library.
    symfony/mailer                     v5.2.0-RC1 Symfony Mailer Component
    symfony/mailgun-mailer             v5.2.0-RC1 Symfony Mailgun Mailer Bridge
    symfony/maker-bundle               v1.23.0    Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing...
    symfony/mime                       v5.2.0-RC1 A library to manipulate MIME messages
    symfony/monolog-bridge             v5.2.0-RC1 Symfony Monolog Bridge
    symfony/monolog-bundle             v3.6.0     Symfony MonologBundle
    symfony/options-resolver           v5.2.0-RC1 Symfony OptionsResolver Component
    symfony/orm-pack                   v1.2.0     A pack for the Doctrine ORM
    symfony/phpunit-bridge             v5.2.0-RC1 Symfony PHPUnit Bridge
    symfony/polyfill-intl-grapheme     v1.20.0    Symfony polyfill for intl's grapheme_* functions
    symfony/polyfill-intl-icu          v1.20.0    Symfony polyfill for intl's ICU-related data and classes
    symfony/polyfill-intl-idn          v1.20.0    Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
    symfony/polyfill-intl-normalizer   v1.20.0    Symfony polyfill for intl's Normalizer class and related functions
    symfony/polyfill-mbstring          v1.20.0    Symfony polyfill for the Mbstring extension
    symfony/polyfill-php72             v1.20.0    Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
    symfony/polyfill-php73             v1.20.0    Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
    symfony/polyfill-php80             v1.20.0    Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
    symfony/polyfill-uuid              v1.20.0    Symfony polyfill for uuid functions
    symfony/profiler-pack              v1.0.5     A pack for the Symfony web profiler
    symfony/property-access            v5.2.0-RC1 Symfony PropertyAccess Component
    symfony/property-info              v5.2.0-RC1 Symfony Property Info Component
    symfony/routing                    v5.2.0-RC1 Symfony Routing Component
    symfony/security-bundle            v5.2.0-RC1 Symfony SecurityBundle
    symfony/security-core              v5.2.0-RC1 Symfony Security Component - Core Library
    symfony/security-csrf              v5.2.0-RC1 Symfony Security Component - CSRF Library
    symfony/security-guard             v5.2.0-RC1 Symfony Security Component - Guard
    symfony/security-http              v5.2.0-RC1 Symfony Security Component - HTTP Integration
    symfony/service-contracts          v2.2.0     Generic abstractions related to writing services
    symfony/stopwatch                  v5.2.0-RC1 Symfony Stopwatch Component
    symfony/string                     v5.2.0-RC1 Symfony String component
    symfony/test-pack                  v1.0.7     A pack for functional and end-to-end testing within a Symfony app
    symfony/translation                v5.2.0-RC1 Symfony Translation Component
    symfony/translation-contracts      v2.3.0     Generic abstractions related to translation
    symfony/twig-bridge                v5.2.0-RC1 Symfony Twig Bridge
    symfony/twig-bundle                v5.2.0-RC1 Symfony TwigBundle
    symfony/twig-pack                  v1.0.1     A Twig pack for Symfony projects
    symfony/validator                  v5.2.0-RC1 Symfony Validator Component
    symfony/var-dumper                 v5.2.0-RC1 Symfony mechanism for exploring and dumping PHP variables
    symfony/var-exporter               v5.2.0-RC1 A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code
    symfony/web-profiler-bundle        v5.2.0-RC1 Symfony WebProfilerBundle
    symfony/webpack-encore-bundle      v1.8.0     Integration with your Symfony app & Webpack Encore!
    symfony/yaml                       v5.2.0-RC1 Symfony Yaml Component
    
    

    .env

    DATABASE_URL="postgres://my_user:123456@host:5432/my_db?serverVersion=13&charset=utf8"
    

    config/packages/doctrine.yaml

    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: '13'
        orm:
            auto_generate_proxy_classes: true
            naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
            auto_mapping: true
            mappings:
                App:
                    is_bundle: false
                    type: annotation
                    dir: '%kernel.project_dir%/src/Entity'
                    prefix: 'App\Entity'
                    alias: App
    
    

    Metadata

    Metadata

    Assignees

    No one assigned

      Type

      No type

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        0