Utilize native SQL field type declarations.

Doctrine provides a method to get the platform independent SQL field
declaration.
This commit is contained in:
Marijn Huizendveld
2012-08-07 00:51:33 +02:00
parent 5d9ff8c07e
commit ecdb6f4f82
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
"php": ">=5.3.3"
},
"require-dev": {
"doctrine/dbal": ">=2"
"doctrine/dbal": ">=2.3"
},
"autoload": {
"psr-0": {"Rhumsaa\\Uuid": "src/"}
+1 -1
View File
@@ -36,7 +36,7 @@ class UuidType extends Type
*/
public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration);
return $platform->getGuidTypeDeclartionSQL($fieldDeclaration);
}
/**