From 69295ba07696c6e194edc9b5df60a6ad9e0eda69 Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Fri, 2 Dec 2011 20:59:17 +0100 Subject: [PATCH] Add missing canRequireSQLConversion() in example type code --- ...ced-field-value-conversion-using-custom-mapping-types.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/en/cookbook/advanced-field-value-conversion-using-custom-mapping-types.rst b/en/cookbook/advanced-field-value-conversion-using-custom-mapping-types.rst index 4aad58919..b20582f53 100644 --- a/en/cookbook/advanced-field-value-conversion-using-custom-mapping-types.rst +++ b/en/cookbook/advanced-field-value-conversion-using-custom-mapping-types.rst @@ -171,6 +171,11 @@ Now we're going to create the ``point`` type and implement all required methods. return $value; } + public function canRequireSQLConversion() + { + return true; + } + public function convertToPHPValueSQL($sqlExpr, AbstractPlatform $platform) { return sprintf('AsText(%s)', $sqlExpr);