mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-46: Invalid MySQL column mappings #58
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 14, 2009).
Jira issue originally created by user mcurcio:
I have a table for storing sessions in the database, schema is:
CREATE TABLE IF NOT EXISTS
Session(idvarchar(255) NOT NULL,datalongtext NOT NULL,createddatetime NOT NULL,accesseddatetime NOT NULL,PRIMARY KEY (
id)) ENGINE=InnoDB DEFAULT CHARSET=latin1;
With the following code, I receive an error about an unknown 'clob' column. I believe the issue is related to the mappings in DBAL/Schema/MySQLSchemaManager::_getPortableTableColumnDefinition
Code:
$cmf = $em->getMetadataFactory();
$driver = $em->getConfiguration()->getMetadataDriverImpl();
Error:
exception 'Doctrine\Common\DoctrineException' with message 'Unknown column type ('clob')' in /var/www/tec-expo.com/development/libraries/Doctrine/Common/DoctrineException.php:109
Stack trace:
#0 [internal function]: Doctrine\Common\DoctrineException::**callStatic('unknownColumnTy...', Array)
#1 libraries/Doctrine/DBAL/Types/Type.php(125): Doctrine\Common\DoctrineException::unknownColumnType('clob')
#2 libraries/Doctrine/DBAL/Schema/AbstractSchemaManager.php(871): Doctrine\DBAL\Types\Type::getType('clob')
#3 libraries/Doctrine/DBAL/Schema/AbstractSchemaManager.php(180): Doctrine\DBAL\Schema\AbstractSchemaManager->_getPortableTableColumnList(Array)
#4 libraries/Doctrine/ORM/Tools/SchemaTool.php(504): Doctrine\DBAL\Schema\AbstractSchemaManager->listTableColumns('Session')
#5 (MVC controller): Doctrine\ORM\Tools\SchemaTool->getUpdateSchemaSql(Array)
@doctrinebot commented on GitHub (Oct 14, 2009):
Comment created by romanb:
This should be fixed now in HEAD. Can you confirm that?
@doctrinebot commented on GitHub (Oct 14, 2009):
Comment created by @jwage:
Which metadata driver are you using?
@doctrinebot commented on GitHub (Oct 14, 2009):
Comment created by mcurcio:
Yes, it appears to be fixed now.
@doctrinebot commented on GitHub (Oct 14, 2009):
Issue was closed with resolution "Fixed"