Payum / PayumBundle

Payum offers everything you need to work with payments. From simplest use cases to very advanced ones.
https://payum.gitbook.io/payum
MIT License
569 stars 142 forks source link

PayumBundle not respects default entity manager #463

Open poolerMF opened 6 years ago

poolerMF commented 6 years ago

when I define doctrine like this:

doctrine:
    orm:
        auto_generate_proxy_classes: '%kernel.debug%'
        default_entity_manager: central
        entity_managers:
            central:
                naming_strategy: doctrine.orm.naming_strategy.underscore
                auto_mapping: true
                metadata_cache_driver: apc

function PayumExtension->prepend

makasim commented 6 years ago

A PR would be great.

makasim commented 6 years ago

This where it should be fixed https://github.com/Payum/PayumBundle/blob/17ee0b6f3f1fda1026dcea229c0c635971940d43/DependencyInjection/PayumExtension.php#L80

poolerMF commented 6 years ago

sorry, I will not fix it, I'm just writing you that, there is error ... if you want real example, try example above

and another "bug" is that, getExtensionConfig is returning array of configs .. not only one last config

maybe you need to find/detect "default_manager" and add mappings there