From fcbc98236d9e5ba5d5be874f1b8d011e6e9ea37e Mon Sep 17 00:00:00 2001 From: Serhii Korniushov Date: Tue, 4 Feb 2025 13:26:11 -0600 Subject: [PATCH] Fix return type for getSQLDeclaration Fix return type error. bin/console doctrine:schema:update --force In ExceptionConverter.php line 87: An exception occurred while executing a query: SQLSTATE[42704]: Undefined object: 7 ERROR: type "string" does not exist LINE 1: CREATE TABLE xxx (ip string NOT NULL, ... --- src/Doctrine/DBAL/Types/Inet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Doctrine/DBAL/Types/Inet.php b/src/Doctrine/DBAL/Types/Inet.php index 22c2866..e880777 100644 --- a/src/Doctrine/DBAL/Types/Inet.php +++ b/src/Doctrine/DBAL/Types/Inet.php @@ -20,7 +20,7 @@ public function getName() : string public function getSQLDeclaration(array $column, AbstractPlatform $platform) : string { - return $platform->getDoctrineTypeMapping(Types::INET); + return Types::INET; } /**