Payum / PayumBundle

Payum offers everything you need to work with payments. From simplest use cases to very advanced ones.
https://payum.forma-pro.com/
MIT License
565 stars 143 forks source link

use Doctrine\Persistence\ObjectManager instead Doctrine\Common\Persistence\ObjectManager #520

Closed martygraphy closed 3 years ago

martygraphy commented 3 years ago

Hello, I receive this error when I want to make a payment:

Argument 1 passed to Payum\Core\Bridge\Doctrine\Storage::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in /var/www/html/var/cache/dev/ContainerQsE4e9C/srcApp_KernelDevDebugContainer.php on line 1617

I saw that an intervention had taken place on the Payum/Core directory correcting this problem:

https://github.com/Payum/Core/commit/4b8987cfcd7201d2bd81675cdc85a667de45eb9a

Would it be possible to use the latest version of payum/core in the payum/payum-bundle ? Because version 1.6 does not include this feature.

Sincerely

Marc-Antoine

jkabat commented 3 years ago

Seems like you use recent Doctrine/Persistence library. To solve the issue you should require Payum/Payum:dev-master version until new stable version is tagged.

martygraphy commented 3 years ago

@jkabat Hello, Thank you for your answer. I'm not sure I understand your message, I use payum-bundle for symfony which uses payum-core.

Why do I have to use payum/payum?

martygraphy commented 3 years ago

Oh ok sorry my bad ! Thank you @jkabat !