Fix DDC-557
This commit is contained in:
parent
6d34b91425
commit
c0dc0112d3
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user