1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Fix DDC-557

This commit is contained in:
Benjamin Eberlei 2010-05-01 03:36:40 +02:00
parent 6d34b91425
commit c0dc0112d3

View File

@ -130,6 +130,8 @@ the methods as you wish. Here is an example skeleton of such a custom type class
*/
class MyType extends Type
{
const MYTYPE = 'mytype'; // modify to match your type name
public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
// return the SQL used to create your column type. To create a portable column type, use the $platform.
@ -144,6 +146,11 @@ the methods as you wish. Here is an example skeleton of such a custom type class
{
// This is executed when the value is written to the database. Make your conversions here, optionally using the $platform.
}
public function getName()
{
return self::MYTYPE; // modify to match your constant name
}
}
Restrictions to keep in mind: