-
Notifications
You must be signed in to change notification settings - Fork 38
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
Doctrine argument type error #134
Comments
I already investigated a bit. The The So technically, an One thing I don't know about is the difference between |
ok, let me take a look. |
@kgrycuk Please try now? |
@mmucklo I also got the issue @kgrycuk got. I upgraded to version 6.3.0 of this bundle but got the following error :
Removing the typehint on $objectManager in both BaseDoctrineJobManager.php & DoctrineJobTimingManager.php solves the error. After that when I tried to create a job I got the following error
I made a fork this solve this and the errors above : master...Mycw1991:master Can you please adopt these changes or let me know if another solution is better? |
@Mycw1991 I made a few updates, could you try now? |
after a composer update, php bin/console works just fine. |
@mmucklo I can confirm that there are no errors on 6.3.1 . Thank you for your quick response. |
Hi, I got this problem with 6.3.1. Argument 1 passed to Dtc\GridBundle\Grid\Source\AbstractDoctrineGridSource::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in /home/vagrant/iam/vendor/mmucklo/queue-bundle/ORM/LiveJobsGridSource.php on line 29 |
@nico-dangerous Could you confirm if the recently committed fix in 6.3.3 works? |
Hi, The error is gone. But I have a new one :
Maybe I should open an issue in dtc grid bundle repo ? |
@nico-dangerous - Okay, I made another adjustment, could you test now? |
I used this bundle in a similar project a couple months ago without issue, but now I have several type errors with Doctrine related classes and functions.
Here is an example of an error after running a
php bin/console
on fresh symfony project.Steps to recreate:
symfony new project-name --full
composer config extra.symfony.allow-contrib true
composer require mmucklo/queue-bundle
php bin/console
and you should get an errorHere is what my composer.json looks like
The text was updated successfully, but these errors were encountered: