Commit f0ccb4d2 authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #5 from julienfastre/master

correct sql expression in Types section
parents 3d20e9a5 e4205fd6
......@@ -142,14 +142,14 @@ The job of Doctrine-DBAL is to transform your type into SQL declaration. You can
return true;
}
Then you can override the methods convertToPhpValueSQL and convertToDatabaseValueSQL :
Then you override the methods convertToPhpValueSQL and convertToDatabaseValueSQL :
::
<?php
public function convertToPHPValueSQL($sqlExpr, $platform)
{
return 'MyMoneyFunction(\''.$sqlExpr.') ';
return 'MyMoneyFunction(\''.$sqlExpr.'\') ';
}
public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment