1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00

Add missing canRequireSQLConversion() in example type code

This commit is contained in:
Jan Sorgalla 2011-12-02 20:59:17 +01:00
parent 76254d693d
commit 69295ba076

View file

@ -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);