Skip to content

ipl\Orm\Query::assembleSelect() causes unintended side-effects #166

Description

@nilmerg

Build a query similar to this:

Incident::on(Database::get())
    ->with(['object'])
    ->withColumns([
        'object.id_tags',
        'object.source.name',
        'object.source.type'
    ]);

Now ->count() said query and then iterate it.

You'll notice that the iteration now includes columns you didn't ask for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions