lib/Sirel/SelectManager.php
function using($columns)
    {
        $lastJoin = $this->getLastJoinSource();

        if (null === $columns) {
            $lastJoin->right = null;
            return $this;
        }

        $columns = is_array($columns) ? $columns : func_get_args();

        if ($lastJoin->right instanceof Using) {
            $lastJoin->right->expression = array_merge(
                $lastJoin->right->expression,
                $columns
            );
        } else {
            $lastJoin->right = new Grouping($columns);
        }
        return $this;
    }
function using($columns)
    {
        $lastJoin = $this->getLastJoinSource();

        if (null === $columns) {
            $lastJoin->right = null;
            return $this;
        }

        $columns = is_array($columns) ? $columns : func_get_args();

        if ($lastJoin->right instanceof Using) {
            $lastJoin->right->expression = array_merge(
                $lastJoin->right->expression,
                $columns
            );
        } else {
            $lastJoin->right = new Grouping($columns);
        }
        return $this;
    }
function using ( $ columns ) { $ lastJoin = $ this -> getLastJoinSource ( ) ; if ( null === $ columns ) { $ lastJoin -> right = null ; return $ this ; } $ columns = is_array ( $ columns ) ? $ columns : func_get_args ( ) ; if ( $ lastJoin -> right instanceof Using ) { $ lastJoin -> right -> expression = array_merge ( $ lastJoin -> right -> expression , $ columns ) ; } else { $ lastJoin -> right = new Grouping ( $ columns ) ; } return $ this ; }
Adds an USING Clause to the last Join

@param mixed $columns,... Either list of columns as first
argument or the columns as multiple arguments

@return SelectManager
Adds an USING Clause to the last Join