Permalink
Browse files

accept array as parameter in getConcatExpression

  • Loading branch information...
1 parent ce2b43a commit 53883593b1d8b55baa2bb210a72bbce54f771f8a @broncha committed Feb 19, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
@@ -768,7 +768,12 @@ public function getSubstringExpression($value, $from, $length = null)
*/
public function getConcatExpression()
{
- return join(' || ' , func_get_args());
+ $args = func_get_args();
+
+ if(is_array($args[0])){
+ $args = $args[0];
+ }
+ return join(' || ' , $args);
}
/**

0 comments on commit 5388359

Please sign in to comment.