Skip to content

Commit

Permalink
Merge pull request #5 from julienfastre/master
Browse files Browse the repository at this point in the history
correct sql expression in Types section
  • Loading branch information
guilhermeblanco committed Mar 3, 2012
2 parents 3d20e9a + e4205fd commit f0ccb4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/reference/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f0ccb4d

Please sign in to comment.