diff --git a/manual/en/basic-mapping.txt b/manual/en/basic-mapping.txt index 17910de81..d4ec04fe1 100644 --- a/manual/en/basic-mapping.txt +++ b/manual/en/basic-mapping.txt @@ -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: