Ejemplo n.º 1
0
 protected function _renderTableName(Table $table)
 {
     return $this->_enclose(parent::_renderTableName($table));
 }
 /**
  * Override in order to get the string concatenation right
  * @param Func $func
  * @return string
  */
 protected function _renderFunc(Func $func)
 {
     if ($func->getName() != 'CONCAT') {
         return parent::_renderFunc($func);
     }
     $args = $func->getArgs();
     array_walk($args, function (&$arg) {
         $arg = $this->_renderValue($arg);
     });
     return implode(' + ', $args);
 }