From bad6cc20b2574c34037a5c1a97ce430e1c80d724 Mon Sep 17 00:00:00 2001 From: Artem Henvald Date: Tue, 7 May 2024 16:11:53 +0300 Subject: [PATCH] Update tests --- Command/EnumDropCommentCommand.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Command/EnumDropCommentCommand.php b/Command/EnumDropCommentCommand.php index 1dd4602..0f08243 100644 --- a/Command/EnumDropCommentCommand.php +++ b/Command/EnumDropCommentCommand.php @@ -12,13 +12,11 @@ namespace Fresh\DoctrineEnumBundle\Command; -use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\ORM\EntityManagerInterface; use Doctrine\Persistence\ManagerRegistry; use Fresh\DoctrineEnumBundle\DBAL\Types\AbstractEnumType; use Fresh\DoctrineEnumBundle\Exception\EnumType\EnumTypeIsRegisteredButClassDoesNotExistException; use Fresh\DoctrineEnumBundle\Exception\InvalidArgumentException; -use Fresh\DoctrineEnumBundle\Exception\RuntimeException; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -164,7 +162,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if ($metadata->getTypeOfField($fieldName) === $this->enumType) { /** @var array{columnName: string} $fieldMappingDetails */ $fieldMappingDetails = $metadata->getFieldMapping($fieldName); - $sql = $platform->getCommentOnColumnSQL($tableName, $fieldMappingDetails['columnName'], null); + $sql = $platform->getCommentOnColumnSQL($tableName, $fieldMappingDetails['columnName'], 'NULL'); $connection->executeQuery($sql); $io->text(\sprintf(' * %s::$%s Dropped ✔', $entityName, $fieldName));