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

ClassMetadata Namespace Fix #27

Open
bdiouih opened this issue Jan 22, 2021 · 2 comments
Open

ClassMetadata Namespace Fix #27

bdiouih opened this issue Jan 22, 2021 · 2 comments

Comments

@bdiouih
Copy link

bdiouih commented Jan 22, 2021

I'm using DtcGridBundle with DtcQueueBundle:

I got the following error, when displaying almost any DtcQueue interface:

Argument 2 passed to Dtc\GridBundle\Grid\Source\ColumnSource::getCachedColumnInfo() must be an instance of Doctrine\Common\Persistence\Mapping\ClassMetadata, instance of Doctrine\ORM\Mapping\ClassMetadata given

I found that changing the import (Line 6) in Dtc\GridBundle\Grid\Source\ColumnSource:

FROM:
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
TO:
use Doctrine\ORM\Mapping\ClassMetadata;

=> Simply fixes the issue

This has to do with some changes recently done in Doctrine Persistence

I made this issue to help people having the same issue as me.
Can you please include this fix? Or do you need a PR?

@jarekkowol
Copy link

I have the same problem.

@Proglab
Copy link

Proglab commented Apr 21, 2021

I already made a PR

#29

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

3 participants