1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Merge pull request #62 from jsor/cookbook_types_fix

Add missing canRequireSQLConversion() in example type code
This commit is contained in:
Benjamin Eberlei 2011-12-02 12:58:54 -08:00
commit f057587457

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