Skip to content

ClassMetadata Namespace Fix #27

@bdiouih

Description

@bdiouih

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions