DDC-25: Boolean type does not work #33

Closed
opened 2026-01-22 12:24:54 +01:00 by admin · 2 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:54 +01:00
admin closed this issue 2026-01-22 12:24:54 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 1, 2009):

Comment created by romanb:

Just checked and this has already been fixed in HEAD and is therefore already fixed for the next release.

Thanks!

@doctrinebot commented on GitHub (Oct 1, 2009): Comment created by romanb: Just checked and this has already been fixed in HEAD and is therefore already fixed for the next release. Thanks!
Author
Owner

@doctrinebot commented on GitHub (Oct 1, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Oct 1, 2009): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#33