DDC-25: Boolean type does not work #30

Open
opened 2026-01-22 12:24:51 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 1, 2009).

Jira issue originally created by user itoijala:

The boolean type does not work. The method used by BooleanType does not exist. It should probably use getBooleanTypedeclarationSql(array $field).

In Doctrine\DBAL\Types\BooleanType:

OLD:
public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
return $platform->getBooleanDeclarationSql();
}

NEW:
public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
return $platform->getBooleanTypeDeclarationSql($fieldDeclaration);
}

Originally created by @doctrinebot on GitHub (Oct 1, 2009). Jira issue originally created by user itoijala: The boolean type does not work. The method used by BooleanType does not exist. It should probably use getBooleanTypedeclarationSql(array $field). In Doctrine\DBAL\Types\BooleanType: OLD: public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { return $platform->getBooleanDeclarationSql(); } NEW: public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { return $platform->getBooleanTypeDeclarationSql($fieldDeclaration); }
admin added the Bug label 2026-01-22 12:24:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#30