diff --git a/lib/Doctrine/Expression/Mysql.php b/lib/Doctrine/Expression/Mysql.php index 08c8e9398..0f26b2057 100644 --- a/lib/Doctrine/Expression/Mysql.php +++ b/lib/Doctrine/Expression/Mysql.php @@ -110,4 +110,18 @@ class Doctrine_Expression_Mysql extends Doctrine_Expression_Driver { return 'UUID()'; } -} \ No newline at end of file + + /** + * Returns string to concatenate two or more string parameters + * + * @param string $value1 + * @param string $value2 + * @param string $values... + * @return string to concatenate two strings + **/ + function concat($value1, $value2) + { + $args = func_get_args(); + return 'CONCAT('.implode(', ', $args).')'; + } +}