public static function copyFrom(Query $otherQuery)
    {
        $self            = new static($otherQuery->table);
        $self->alias     = $otherQuery->alias;
        $self->joins     = $otherQuery->joins;
        $self->where     = $otherQuery->where;
        $self->orderings = $otherQuery->orderings;
        $self->offset    = $otherQuery->offset;
        $self->limit     = $otherQuery->limit;

        return $self;
    }
public static function copyFrom(Query $otherQuery)
    {
        $self            = new static($otherQuery->table);
        $self->alias     = $otherQuery->alias;
        $self->joins     = $otherQuery->joins;
        $self->where     = $otherQuery->where;
        $self->orderings = $otherQuery->orderings;
        $self->offset    = $otherQuery->offset;
        $self->limit     = $otherQuery->limit;

        return $self;
    }
public static function copyFrom ( Query $ otherQuery ) { $ self = new static ( $ otherQuery -> table ) ; $ self -> alias = $ otherQuery -> alias ; $ self -> joins = $ otherQuery -> joins ; $ self -> where = $ otherQuery -> where ; $ self -> orderings = $ otherQuery -> orderings ; $ self -> offset = $ otherQuery -> offset ; $ self -> limit = $ otherQuery -> limit ; return $ self ; }
Copies the query from the other query

@param Query $otherQuery

@return static
Copies the query from the other query