Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h committed May 7, 2024
1 parent dca5a43 commit bad6cc2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Command/EnumDropCommentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 <info>Dropped ✔</info>', $entityName, $fieldName));
Expand Down

0 comments on commit bad6cc2

Please sign in to comment.