Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing "class" config key on Laminas Mezzio #47

Open
RodriAndreotti opened this issue Aug 11, 2021 · 0 comments
Open

Missing "class" config key on Laminas Mezzio #47

RodriAndreotti opened this issue Aug 11, 2021 · 0 comments

Comments

@RodriAndreotti
Copy link

RodriAndreotti commented Aug 11, 2021

Hi!
I'm facing some initialization problems with lib.

The exception that I receive is:

ServiceNotCreatedException
Service with name "doctrine.entity_manager.orm_default" could not be created. Reason: Missing "class" config key

My global config:

return array(
    'doctrine' => [
        'driver' => [
            'orm_default' => [
                'class' => \Doctrine\ORM\Mapping\Annotation::class,
            ],
        ],
        'connection' => [
            'orm_default' => [
                'charset' => 'UTF8mb4',
                'collation' => 'UTF8mb4_unicode_ci',
            ]
        ],
        'configuration' => [
            'orm_default' => [
                'result_cache' => 'custom_cache',
                'metadata_cache' => 'custom_cache',
                'query_cache' => 'custom_cache',
                'hydration_cache' => 'custom_cache',
            ]
        ],
        'cache' => [
            'orm_default' => [
                'custom_cache' => [
                    'class' => CustomCacheProvider::class, // Because Doctrine Cache breaking changes
                ],
            ]
        ]
    ],
    'dependencies' => [
        'factories' => [
            'doctrine.entity_manager.orm_default' => \Roave\PsrContainerDoctrine\EntityManagerFactory::class,
        ],
    ]
);

Edit: With some debug i found that problem is with cache factory, maybe related with #46

It's possible to disable cache for now, while I'm in developement time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant