Merge pull request #62 from jsor/cookbook_types_fix
Add missing canRequireSQLConversion() in example type code
This commit is contained in:
commit
f057587457
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user