From 564f98d5a02bb63df2e41bb6a2c0db383904ee7b Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 20 Apr 2021 12:00:35 +0200 Subject: [PATCH] Update ColumnSource.php Error on Symfony 5.2.6 : 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 --- Grid/Source/ColumnSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grid/Source/ColumnSource.php b/Grid/Source/ColumnSource.php index b41ba97..75e2f56 100644 --- a/Grid/Source/ColumnSource.php +++ b/Grid/Source/ColumnSource.php @@ -3,7 +3,7 @@ namespace Dtc\GridBundle\Grid\Source; use Doctrine\Common\Annotations\Reader; -use Doctrine\Common\Persistence\Mapping\ClassMetadata; +use Doctrine\ORM\Mapping\ClassMetadata; use Dtc\GridBundle\Annotation\Action; use Dtc\GridBundle\Annotation\Column; use Dtc\GridBundle\Annotation\DeleteAction;